/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #8B7ED8 0%, #9D8CE8 50%, #B19CD9 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Modern Page Header */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
}

/* Navigation */
nav {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

nav .logo {
    color: white;
    font-size: 26px;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

nav .logout {
    float: right;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

nav .logout:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Modern Forms */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 520px;
    margin: 50px auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.form-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

input, select {
    width: 100%;
    padding: 16px 20px;
    margin: 12px 0;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: #8B7ED8;
    box-shadow: 0 0 0 3px rgba(139, 126, 216, 0.1);
    background: white;
}

button {
    width: auto;
    display: inline-block;
    padding: 12px 24px;
    margin: 5px 8px 5px 0;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.button {
    width: auto;
    display: inline-block;
    padding: 12px 24px;
    margin: 5px 8px 5px 0;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Form buttons should be full width */
.form-container button {
    width: 100%;
    margin: 20px 0 10px 0;
}

/* Primary Button */
button, .button, .button-link {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    text-decoration: none;
}

button:hover, .button:hover, .button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

button:active {
    transform: translateY(0);
}

/* Dashboard Cards */
.dashboard .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.dashboard .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.dashboard .card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Questionnaire Card Style */
/* .questionnaire-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 350px;
    display: inline-block;
    vertical-align: top;
} */

.questionnaire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

.questionnaire-preview {
    background: linear-gradient(135deg, #8B7ED8 0%, #9D8CE8 100%);
    height: 120px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(139, 126, 216, 0.3);
}

.questionnaire-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Results */
.results-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.result-item {
    padding: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255,255,255,0.8);
    transform: translateX(5px);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Navigation Links */
.nav-link {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-left: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.nav-link:hover {
    background: linear-gradient(135deg, #1e8449 0%, #186239 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* Modern Navbar */
.main-navbar {
    width: 100%;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 0;
    border-radius: 0 0 24px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 28px;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
}

.navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    justify-content: center;
    gap: 25px;
}

.navbar-links li a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-links li a:hover,
.navbar-links li a.active {
    background: rgba(139, 126, 216, 0.1);
    color: #8B7ED8;
    transform: translateY(-1px);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-btn {
    background: linear-gradient(135deg, #8B7ED8 0%, #9D8CE8 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(139, 126, 216, 0.3);
}

.navbar-btn:hover {
    background: linear-gradient(135deg, #7A6AC7 0%, #8B7ED8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 126, 216, 0.4);
}

/* Dropdown Menus */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown > .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 8px;
}

.navbar-dropdown:hover > .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submenu (SOP) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

/* Remove bullets and padding from all dropdown menus and submenus */
.navbar-links ul,
.navbar-links li,
.dropdown-menu,
.dropdown-menu li,
.dropdown-submenu ul,
.dropdown-submenu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 12px 0;
    min-width: 220px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.dropdown-menu li a {
    color: #2c3e50;
    font-size: 1em;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    margin: 2px 8px;
}

.dropdown-menu li a:hover {
    background: rgba(139, 126, 216, 0.1);
    color: #8B7ED8;
    transform: translateX(4px);
}

.dropdown-submenu > .dropdown-menu {
    left: 100%;
    top: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    min-width: 220px;
}

/* Modern Button Link */
.button-link {
    display: inline-block;
    outline: none;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    margin: 5px;
}

.button-link:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

/* Add Button (Special styling for primary actions) */
.add-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .form-container {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .questionnaire-card {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .navbar-content {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .navbar-links {
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Glass Effect Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}