/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #16181d, #1e222a);
    color: #dfe4ed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #23262e;
    color: #dfe4ed;
    padding: 15px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 1px solid #30343b;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #30343b;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.sidebar .file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .file-list li {
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #30343b;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    font-size: 14px;
    display: flex;
    align-items: center;
    text-align: left;
}

.sidebar .file-list li:hover {
    background: #3a3f4b;
    transform: translateY(-2px);
}

.sidebar .file-list li a {
    text-decoration: none;
    color: #dfe4ed;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #30343b;
    color: #dfe4ed;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    z-index: 1001;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: #3a3f4b;
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: margin-left 0.3s ease-in-out;
    overflow-y: auto;
}

.main-content.collapsed {
    margin-left: 0;
}

/* Header */
.header {
    margin-left: -217px;
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    color: #dfe4ed;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header p {
    font-size: 14px;
    color: #a6a9b4;
}

/* Card */
.card {
    margin-left: -259px;
    width: 95%;
    max-width: 640px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #282c34;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    background: #30343b;
    color: #dfe4ed;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #3a3f4b;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 15px;
    background: #23262e;
    border-radius: 0 0 8px 8px;
}

/* File Upload Styles */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.input-file {
    display: none;
}

.input-label {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #dfe4ed;
    background-color: #3a3f4b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.input-label:hover {
    background-color: #4a5162;
    transform: translateY(-2px);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal {
    background: #282c34;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 400px;
}

.modal h2 {
    font-size: 24px;
    color: #dfe4ed;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal .form-group {
    margin-bottom: 15px;
}

.modal .input-text {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #3a3f4b;
    color: #dfe4ed;
    font-size: 14px;
}

.modal .btn.primary {
    background: #4caf50;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.modal .btn.primary:hover {
    background: #43a047;
}

/* Logout Button */
.header .logout-btn {
    position: absolute;
    right: 20px;
    top: 5%;
    transform: translateY(-50%);
    background: #2a2633;
    color: #fff;
    font-size: 14px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.header .logout-btn:hover {
    background: #d32f2f;
    transform: translateY(-50%) scale(1.05);
}


/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    margin-top: 75px;
    text-align: center;
    padding: 12px 15px;
    background: #16181d;
    color: #a6a9b4;
    width: 100%;
    font-size: 12px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}


/* Notes Container */
.note-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

/* Notes Section Styles */
.note-card {
    margin-left: -52px;
    margin-right: 22px;
    background: #1e222a;
    color: #dfe4ed;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    font-size: 12px;
    line-height: 1.5;
    overflow-y: auto;
    max-height: 60vh;
    border: 1px solid #30343b;
}

/* Note Header */
.note-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffd700; /* Golden color for a visually distinct look */
    text-align: center;
    border-bottom: 2px solid #3a3f4b;
    padding-bottom: 10px;
}

/* Note Body */
.note-body {
    padding: 10px 0;
}

/* Notes List */
.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.notes-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 16px;
    line-height: 1.5;
}

.notes-list li strong {
    font-weight: 600;
    color: #a6c8ff;
}

.notes-list ul {
    padding-left: 15px;
    margin-top: 8px;
    list-style-type: disc;
    color: #dfe4ed;
}

.notes-list ul li {
    margin-bottom: 5px;
}

/* Scrollbar for Overflow */
.note-card::-webkit-scrollbar {
    width: 8px;
}

.note-card::-webkit-scrollbar-thumb {
    background: #4a4e59;
    border-radius: 8px;
}

.note-card::-webkit-scrollbar-thumb:hover {
    background: #6a6e79;
}


/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar-toggle {
        left: 10px;
    }
}