:root {
    --primary-color: #3498db;
    --hover-primary-color: #2980b9;
    --secondary-color: #2ecc71;
    --tertiary-color: #9b59b6;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333333;
    --light-text: #707070;
    --lighter-text: #aaaaaa;
    --border-color: #e0e0e0;
    --hover-color: #f0f0f0;
    --danger-color: #e53935;
    --danger-hover: #c62828;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --info-color: #3498db;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 5px 15px rgba(0,0,0,0.1);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-height: 60px;
    --sidebar-width: 250px;
    --max-content-width: 1400px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

body {
    /* Removed flexbox */
}

.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    color: var(--text-color);
    line-height: 1.3;
}

p {
    margin: 0 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    position: relative;
}

a:hover {
    color: var(--hover-primary-color);
    text-decoration: none;
}

a:hover::after {
    width: 100%;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.error {
    color: var(--danger-color);
    font-weight: 500;
}

.success {
    color: var(--success-color);
    font-weight: 500;
}

code {
    font-family: Monaco, 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 14px;
}

/* ----- Header ----- */
header {
    background-color: var(--card-background);
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-content-width);
    padding: 0 30px;
    height: 100%;
    margin: 0 auto;
}

.header-logo-name {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    transition: transform var(--transition-speed) ease;
}

.header-logo-name:hover {
    transform: scale(1.03);
}

#org-logo {
    max-height: 36px;
    margin-right: 12px;
    border-radius: 4px;
    transition: filter var(--transition-speed) ease;
}

#org-switcher-container {
    position: relative;
    min-width: 180px;
    margin-left: 15px;
}

#org-switcher-container select {
    appearance: none;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 14px;
    padding: 8px 12px;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#org-switcher-container select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

#org-switcher-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ----- Main Layout ----- */
.main-layout {
    /* Removed grid properties */
    min-height: calc(100vh - var(--header-height) - 50px);
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.app-container {
    display: flex;
    /* Removed flex-grow */
    width: 100%;
    position: relative;
    /* Added: Ensure it takes up necessary height for content */
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--sidebar-bg-color);
    color: var(--sidebar-text-color);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.content {
    margin-left: 250px;
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    width: calc(100% - 250px);
    background-color: #f5f7fa;
    transition: margin-left 0.3s ease;
    box-sizing: border-box;
}

#sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background-color: #2c3e50;
    color: #ecf0f1;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    margin-bottom: 5px;
}

#sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    overflow: hidden;
}

#sidebar ul li a:hover {
    background-color: #34495e;
    color: #ffffff;
    border-left-color: var(--primary-color);
    transform: translateX(2px);
}

#sidebar ul li a.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: #ffffff;
    border-left-color: var(--primary-color);
    font-weight: 600;
}

#sidebar ul li a i.fas {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #95a5a6;
    transition: all var(--transition-speed) ease;
}

#sidebar ul li a:hover i.fas, #sidebar ul li a.active i.fas {
    color: #ffffff;
}

#logout-btn {
    margin: 20px;
    padding: 10px 16px;
    border: none;
    border-top: 1px solid #34495e;
    color: #ffffff;
    background-color: var(--danger-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

#logout-btn i.fas {
    color: white;
    margin-right: 8px;
}

#logout-btn:hover {
    background-color: var(--danger-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.content-area {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    min-height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    box-sizing: border-box;
}

main#main-content {
    padding: 20px;
    background-color: var(--background-color);
    min-height: calc(100vh - var(--header-height)); /* Ensure it fills viewport height */
    overflow: auto;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    margin-left: var(--sidebar-width);
    position: relative; /* Ensure it's part of the normal flow */
}

footer {
    background-color: var(--card-background);
    color: var(--light-text);
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    position: relative; /* Ensure it stays in normal document flow */
    z-index: 10;
    /* Removed flex-shrink */
}

/* ----- Buttons ----- */
.action-btn, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.action-btn i.fas {
    margin-right: 8px;
}

.action-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.action-btn.primary-btn, .auth-container button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.action-btn.primary-btn:hover {
    background-color: var(--hover-primary-color);
    border-color: var(--hover-primary-color);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.action-btn.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

.action-btn.secondary-btn:hover {
    background-color: #27ae60;
    border-color: #27ae60;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.action-btn.danger-btn {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.action-btn.danger-btn:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

button:disabled, .action-btn:disabled {
    background-color: #f5f5f5 !important;
    color: #bbb !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.8;
}

/* ----- Forms ----- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="color"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    background-color: white;
    color: var(--text-color);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

input[type="file"] {
    display: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.inline-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}

.inline-form label {
    margin-bottom: 0;
    margin-right: 5px;
}

.inline-form .form-group, .inline-form label, .inline-form input, .inline-form select, .inline-form button {
    margin-bottom: 0;
}

.inline-form > * {
    margin-right: 10px;
}

.inline-form button {
    margin-left: auto;
}

/* ----- Containers ----- */
.upload-form, .download-container, .auth-container {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    max-width: 600px;
    transition: box-shadow var(--transition-speed) ease;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.file-name {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: var(--light-text);
    vertical-align: middle;
}

/* ----- Messages ----- */
.message-area {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.message-area.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success-color);
}

.message-area.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger-color);
}

.message-area.info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: var(--info-color);
}

/* ----- Item Lists ----- */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-background);
    transition: all var(--transition-speed) ease;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.item-list li:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.item-list .item-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-list .item-info i.fas {
    margin-right: 12px;
    font-size: 1.2em;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.item-list .item-info small {
    color: var(--light-text);
    display: block;
    font-size: 0.85em;
}

.item-list .item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 20px;
}

/* ----- Progress Bars ----- */
.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 20px 0; }
    to { background-position: 0 0; }
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    z-index: 1;
}

/* ----- Welcome View ----- */
.welcome-view h2 {
    margin-bottom: 30px;
    text-align: center;
}

.profile-info,
.profile-update-form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.profile-info p {
    margin-bottom: 10px;
}

.profile-info strong {
    font-weight: 600;
    color: var(--text-color);
}

.customization-form-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--box-shadow);
}

/* ----- Auth Page Specific Background ----- */
.auth-page-background {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    /* This class would ideally be added to body via JS when on auth pages */
}

/* ----- Auth Styles Enhancement - Creative ----- */
.auth-container {
    background-color: #ffffff;
    border-radius: 12px; /* Even rounder */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    padding: 45px 50px; /* More padding */
    max-width: 450px; /* Wider */
    margin: 80px auto; /* More vertical margin */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 5px solid var(--primary-color); /* Colored top border */
    border: none; /* Remove other borders */
    overflow: hidden; /* Ensure top border looks good */
}

.auth-container:hover {
    transform: translateY(-8px) scale(1.01); /* Add slight scale */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Auth Title with Icon */
.auth-container h2 {
    font-size: 2rem; /* Larger title */
    color: #343a40;
    margin-bottom: 10px;
    font-weight: 700; /* Bolder */
    position: relative;
    display: inline-block; /* Needed for padding/icon */
    padding-bottom: 10px;
}

.auth-container h2::before {
    font-family: "Font Awesome 6 Free"; /* Ensure Font Awesome is loaded */
    font-weight: 900;
    content: "\f023"; /* Lock icon */
    display: inline-block;
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.8rem;
    vertical-align: middle;
}

/* Specific icon for Register title */
.auth-container h3:contains('Register')::before { 
    content: "\f234"; /* User plus icon */
}

.auth-container h3 {
    font-size: 1.3rem; /* Adjusted sub-title */
    color: #495057;
    margin-bottom: 30px;
    font-weight: 500;
}

.auth-container p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Auth Form - Enhanced */
.auth-form {
    margin-top: 20px;
}

.auth-form label {
    display: block;
    text-align: left;
    font-weight: 600; /* Bolder label */
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.auth-form .form-group {
    position: relative; /* For potential icon placement */
    margin-bottom: 25px;
}

/* Input field with icon attempt (using padding) */
.auth-form input[type="email"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 14px 18px; /* Increased padding */
    padding-left: 45px; /* Space for icon */
    border: 1px solid #ced4da;
    border-radius: 8px; /* Consistent radius */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-position: 15px center;
    background-repeat: no-repeat;
    background-size: 18px 18px; 
}

/* Specific icons for inputs (requires FontAwesome or SVG URI) */
.auth-form input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-envelope' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z'/%3E%3C/svg%3E");
}
.auth-form input#verify-code {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-key' viewBox='0 0 16 16'%3E%3Cpath d='M0 8a4 4 0 0 1 7.465-2H14a.5.5 0 0 1 .354.146l1.5 1.5a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0L13 9.207l-.646.647a.5.5 0 0 1-.708 0L11 9.207l-.646.647a.5.5 0 0 1-.708 0L9 9.207l-.646.647A.5.5 0 0 1 8 9.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0-1.5 1.5.5.5 0 0 1-1 0A2.5 2.5 0 0 1 5 9c.886 0 1.658.305 2.242.793L10.5 6.5H7.465A4 4 0 0 1 0 8zm7.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3C/svg%3E");
}


.auth-form input[type="email"]:focus,
.auth-form input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15); /* Adjusted shadow */
    outline: none;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 14px 20px; /* Larger button padding */
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 15px;
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--hover-primary-color) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background-position: right center; 
}

.auth-container p a {
    color: var(--primary-color);
    font-weight: 600; /* Bolder link */
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.auth-container p a:hover {
    color: var(--hover-primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--hover-primary-color);
}

/* Space below the form */
.auth-form + p {
    margin-top: 35px;
}

/* Azure Button */
#azure-login-link {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #0078D4;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 120, 212, 0.2);
}

#azure-login-link i {
    margin-right: 8px; /* Space between icon and text */
}

#azure-login-link:hover {
    background-color: #005a9e;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 120, 212, 0.3);
}

/* ----- Main App Structure ----- */
#app {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app.logged-in {
    display: block;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - 50px);
}

#main-content h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

#main-content h2 i {
    margin-right: 12px;
    color: var(--primary-color);
}

#main-content h3 {
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

#main-content h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: var(--text-color);
}

/* ----- Upload View ----- */
.upload-options label,
.upload-options .checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-color);
}

.upload-options input[type="checkbox"],
.upload-options input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.auth-options .secondary-btn {
    margin-left: auto;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ----- Download ----- */
.download-code code {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--hover-color);
    border-radius: 4px;
    font-family: Monaco, 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-color);
    margin: 0 5px;
}

/* ----- Profile Update Form ----- */
.profile-update-form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

/* ----- Share Section ----- */
.share-section h4,
.share-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.download-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: var(--box-shadow);
}

.download-message {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.file-list ul {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list button {
    white-space: nowrap;
}

.download-all-button {
    margin-top: 20px;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Highlight Primary Button Hover Animation */
.action-btn.primary-btn,
.auth-container button[type="submit"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn.primary-btn:before,
.auth-container button[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.action-btn.primary-btn:hover:before,
.auth-container button[type="submit"]:hover:before {
    left: 100%;
}

/* Links with subtle underline on hover */
a {
    position: relative;
}

a:hover {
    text-decoration: none;
}

a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

a:hover:after {
    visibility: visible;
    width: 100%;
}

/* Header shadow animation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Grid for Items */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-list-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-list-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.card-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 15px;
    flex: 1;
}

.card-body p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.card-body p i.fas {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.card-body strong {
    font-weight: 600;
}

.card-file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.card-file-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.card-file-list li i.fas {
    margin-right: 8px;
}

.card-footer {
    padding: 15px;
    background-color: rgba(0,0,0,0.02);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.card-footer .action-btn {
    padding: 8px 12px;
    font-size: 13px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--border-color);
    color: var(--text-color);
}

.status-badge.status-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--success-color);
}

.status-badge.status-downloaded {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--primary-color);
}

.status-badge.status-inactive,
.status-badge.status-expired {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

/* Custom Checkboxes */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    background-color: white;
    transition: all var(--transition-speed) ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    left: 5px;
    top: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

/* Card List for Admin Panel */
.admin-list {
    background: transparent;
    margin-top: 15px;
}

.admin-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Animation for Navigation Links */
#sidebar ul li a {
    position: relative;
    overflow: hidden;
}

#sidebar ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
    z-index: -1;
}

#sidebar ul li a:hover::before {
    left: 100%;
}

/* Stylish File Upload Button */
.file-input-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--card-background);
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.file-input-label:hover {
    background-color: rgba(52, 152, 219, 0.05);
    border-color: var(--primary-color);
}

.file-input-label i {
    margin-right: 8px;
}

/* Dashboard Cards for Welcome View */
.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    padding: 0;
    box-sizing: border-box;
}

.welcome-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.welcome-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.welcome-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.welcome-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.welcome-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.welcome-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Admin Panel Styles */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 30px auto;
    width: 100%;
}

.admin-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.admin-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.admin-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.admin-card-header h3 i {
    color: var(--primary-color);
}

.admin-card-body {
    padding: 20px;
}

/* User management styles */
.user-details {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.user-meta {
    display: flex;
    gap: 10px;
    margin-top: 3px;
    font-size: 12px;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.role-badge.admin-role {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--primary-color);
}

.role-badge.user-role {
    background-color: rgba(149, 165, 166, 0.15);
    color: var(--light-text);
}

.license-badge {
    color: var(--light-text);
}

.form-edit-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Branding preview styles */
.branding-preview {
    text-align: center;
    padding: 15px;
}

.preview-elements {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.color-preview {
    width: 120px;
    height: 80px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.color-preview:hover {
    transform: scale(1.05);
}

.color-preview span {
    background-color: rgba(255,255,255,0.85);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.logo-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.logo-preview img {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
}

.logo-preview span {
    color: var(--light-text);
    font-size: 14px;
}

/* Admin actions and buttons */
.admin-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-content-area {
    min-height: 200px;
}

/* Color picker styles */
.color-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-value {
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.color-preview-text, .logo-help-text {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
    font-style: italic;
}

.logo-preview-container {
    margin-top: 15px;
    text-align: center;
}

.logo-preview-container img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.logo-preview-container .no-logo {
    color: var(--light-text);
    font-size: 14px;
    font-style: italic;
}

.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Customization form styles */
.customization-form-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.customization-form-container:hover {
    box-shadow: var(--box-shadow-hover);
}

/* Invite form container */
.invite-form-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

.empty-state i {
    color: var(--border-color);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Access denied page */
.access-denied {
    text-align: center;
    padding: 50px 20px;
}

.access-denied i {
    color: var(--danger-color);
    margin-bottom: 20px;
}

.access-denied h2 {
    margin-bottom: 10px;
    border-bottom: none;
    justify-content: center;
}

.access-denied .error {
    font-size: 16px;
}

/* Improved alignment for page content */
.welcome-view, .profile-info, .profile-update-forms, .upload-form, 
.admin-cards, .item-list, .card-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logout button styling */
.logout-button {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logout-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .preview-elements {
        flex-direction: column;
        align-items: center;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + 15px);
    left: 15px;
    z-index: 1100;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--hover-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        width: 100%;
    }
}

/* Admin panel user list */
.admin-list-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-list-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--light-text);
}

.user-list-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.user-list-item:hover {
    border-left-color: var(--primary-color);
    padding-left: 5px;
}

.user-email {
    font-weight: 600;
    color: var(--text-color);
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    color: var(--light-text);
    font-size: 12px;
}

.joined-date {
    color: var(--lighter-text);
    font-style: italic;
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.user-list-item:hover .admin-user-actions {
    opacity: 1;
}

/* Branding preview enhancements */
.branding-preview p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Form enhancements */
.form-description {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 14px;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--light-text);
    font-style: italic;
}

.invite-form-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form edit UI */
.admin-edit-role-form {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

.form-edit-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-edit-content i {
    color: var(--primary-color);
}

.form-edit-content span {
    color: var(--text-color);
    font-weight: 500;
}

.form-edit-content select {
    min-width: 120px;
}

/* Customization form and branding preview enhancements */
.customization-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    animation: fadeIn 0.3s ease;
}

.preview-section {
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.preview-section h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
}

.branding-live-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px;
}

.preview-button {
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: default;
}

.preview-link {
    font-weight: 500;
    text-decoration: underline;
    cursor: default;
}

.logo-form-group {
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    padding-top: 25px;
}

.current-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.current-logo img {
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.color-value {
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* Admin panel header */
.admin-panel-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-panel-header h2 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel-header h2 i {
    color: var(--primary-color);
}

.admin-panel-subtitle {
    color: var(--light-text);
    font-size: 15px;
    margin-left: 35px;
}

.admin-panel-subtitle strong {
    color: var(--text-color);
}

/* Responsive adjustments for admin panel */
@media (max-width: 768px) {
    .admin-panel-subtitle {
        margin-left: 0;
    }
    
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-card-header button {
        width: 100%;
    }
}

/* Enhanced Upload Form */
.upload-form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
    max-width: 700px;
    margin: 20px auto;
}

.upload-form:hover {
    box-shadow: var(--box-shadow-hover);
}

.upload-form label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.upload-form label i {
    color: var(--primary-color);
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: var(--card-background);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-bottom: 20px;
    width: auto;
}

.file-input-label:hover {
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

.file-input-label i {
    margin-right: 8px;
    font-size: 1.1em;
}

.file-name {
    display: block;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--light-text);
    font-style: italic;
}

.upload-options {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.upload-options label {
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.upload-options input[type="checkbox"] {
    margin-right: 10px;
}

/* Enhanced Download Container */
.download-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 700px;
    margin: 30px auto;
    animation: fadeIn 0.3s ease;
    transition: all 0.3s ease;
}

.download-container:hover {
    box-shadow: var(--box-shadow-hover);
}

.download-container h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.download-container h2 i {
    color: var(--primary-color);
}

.download-message {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.download-code-form {
    margin-top: 20px;
}

.download-code-form input {
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    font-family: monospace;
}

/* File List and Download Buttons */
.file-list {
    margin: 20px 0;
}

.file-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.file-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.file-list li:last-child {
    margin-bottom: 0;
}

.file-list .item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-list .item-info i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.download-all-button {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    font-weight: 600;
}

/* Share Options Enhancements */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.share-form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
}

.share-form h5 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.share-form h5 i {
    color: var(--primary-color);
}

/* Upload Complete Screen */
.upload-complete {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
}

.upload-complete h4 {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.upload-complete .download-info {
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.upload-complete .download-info p {
    margin-bottom: 10px;
}

.upload-complete .download-info a {
    font-weight: 600;
}

.upload-complete .download-info code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 2px;
}

/* Download page enhancements */
.download-details {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.download-details p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-details p i {
    color: var(--primary-color);
}

.download-message h4 {
    margin-top: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.download-message h4 i {
    color: var(--primary-color);
}

.file-size {
    color: var(--lighter-text);
    font-size: 13px;
    margin-left: 8px;
}

.expired {
    color: var(--danger-color);
    font-weight: 600;
}

.error-container {
    background-color: rgba(231, 76, 60, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.error-container h2 {
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.error-container h2 i {
    color: var(--danger-color);
}

.error-container .error {
    margin-bottom: 20px;
}

/* Upload options title */
.upload-options h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-options h5 i {
    color: var(--primary-color);
}

/* Profile Page Styles */
.profile-header {
    margin-bottom: 30px;
}

.profile-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.profile-header h2 i {
    color: var(--primary-color);
}

.profile-header p {
    color: var(--light-text);
    margin-left: 35px;
}

.profile-info {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.profile-info:hover {
    box-shadow: var(--box-shadow-hover);
}

.profile-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.profile-info h3 i {
    color: var(--primary-color);
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.profile-detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.profile-detail-item i {
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
    text-align: center;
    margin-top: 4px;
}

.profile-detail-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--light-text);
}

.profile-detail-item p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}

.organization-section {
    margin-top: 30px;
}

.profile-update-forms {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
    transition: all 0.3s ease;
}

.profile-update-forms:hover {
    box-shadow: var(--box-shadow-hover);
}

.profile-update-forms h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.profile-update-forms h3 i {
    color: var(--primary-color);
}

.profile-update-section {
    margin-bottom: 30px;
}

.profile-update-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 16px;
}

.profile-update-section h4 i {
    color: var(--primary-color);
}

.profile-form {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.verification-form {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    animation: fadeIn 0.3s ease;
}

.verification-message {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-message i {
    color: var(--primary-color);
}

.org-logo {
    margin-left: 10px;
}

/* Responsive adaptations for profile */
@media (max-width: 768px) {
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .profile-header p {
        margin-left: 0;
    }
} 