﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.input-group {
    margin-bottom: 15px;
    text-align: right;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input {
    width: 90%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

    input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #2575fc;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    button:hover {
        background: #6a11cb;
    }

.links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

    .links a {
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }

        .links a:hover {
            color: #2575fc;
        }

.ckeditor-wrapper {
    max-height: 400px; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    border: 1px solid #ccc; 
}

    .ckeditor-wrapper .ck.ck-editor {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .ckeditor-wrapper .ck.ck-toolbar {
        position: sticky;
        top: 0;
        z-index: 1;
        background: white; 
    }

    .ckeditor-wrapper .ck.ck-editor__main {
        flex: 1;
        overflow-y: auto;
        max-height: calc(500px - 60px); 
    }

.edit-btn, .delete-btn {
    margin: 2px;
    padding: 5px 10px;
    font-size: 14px;
}

td:last-child {
    white-space: nowrap; 
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .btn-logout:hover {
        background-color: #c82333;
    }
