/* Medical Platform Shared Styles */

:root {
    /* Medical Color Palette */
    --primary: #2c5aa0;
    --secondary: #4a90a4;
    --accent: #e8f4f8;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --border: #e9ecef;
    --text: #495057;
    --text-light: #6c757d;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #2c5aa0 0%, #4a90a4 100%);
    --gradient-light: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
    --gradient-red: linear-gradient(135deg, #6a0000 0%, #fb2929 100%);
    --gradient-yellow: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    --gradient-green: linear-gradient(135deg, #1b5b04 0%, #44980c 100%);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-light);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--gradient) !important;
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.15);
    border-bottom: 3px solid var(--secondary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-brand i {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.08);
    background: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.card-header {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-header i {
    color: var(--white);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3d73 0%, #3a7a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--white);
    background: var(--gradient-green);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--dark);
    background: var(--gradient-yellow);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: var(--dark);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    background: var(--gradient-red);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Tables */
.table {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.05);
}

.table thead th {
    background: var(--gradient);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.table thead th i {
    color: var(--white);
}

.table tbody td {
    padding: 0.75rem;
    border-color: var(--border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--accent);
}

/* Forms */
.form-control {
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid var(--info);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* Icons */
.fas, .bi {
    color: var(--primary);
}

.bg-success i {
    color: var(--white)
}

.bg-dark i {
    color: var(--white)
}

.bg-dark i {
    color: var(--white)
}

.modal-header i {
    color: var(--white)
}

/* Main Content Area */
main {
    flex: 1;
    padding: 1rem 0;
}

/* Footer */
.footer {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
}

.footer p {
    color: var(--white) !important;
}

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: var(--gradient);
    border: none;
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--white);
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: 0.75rem;
    }
}

/* Loading States */
.spinner-border {
    color: var(--primary);
}

/* Dashboard Specific */
.dashboard {
    background: var(--gradient-light);
}

.stats-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.1);
    border-left: 4px solid var(--primary);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stats-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tick Animation for Confirmation Pages */
.tick-animation {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--success);
    margin: 0 auto 20px;
    position: relative;
    animation: tick-animation 0.6s ease;
}

.tick-animation::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 24px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

@keyframes tick-animation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Confirmation Page Specific Styles */
.confirmation-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.15);
    border: none;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.confirmation-header {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.confirmation-header i {
    color: var(--white);
}

.confirmation-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--white); /* Changed to white for better visibility */
}

.confirmation-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.success-animation {
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success);
    background: var(--white);
    animation: checkmark-scale 0.6s ease-in-out;
}

.icon-line {
    height: 5px;
    background-color: var(--success);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
    animation: checkmark-draw 0.8s ease-in-out forwards;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation-delay: 0.4s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation-delay: 0.6s;
}

.user-info-card {
    background: var(--accent);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.user-info-card h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.user-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.user-detail:last-child {
    border-bottom: none;
}

.user-detail strong {
    color: var(--text);
    font-weight: 600;
}

.user-detail span {
    color: var(--text-light);
}

.brand {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.brand h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmark-scale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkmark-draw {
    0% {
        width: 0;
    }
    100% {
        width: inherit;
    }
}

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

/* Login Page Specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 15px 50px rgba(44, 90, 160, 0.2);
    overflow: hidden;
    border: none;
    max-width: 450px;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.login-header {
    background: var(--gradient);
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--white); /* White arrow for better visibility */
}

.logo {
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.login-body {
    padding: 3rem 2rem 2rem;
}

.login-footer {
    padding: 1.5rem 2rem;
    background: var(--light);
    border-top: 1px solid var(--border);
}

.password-input-group {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

.login-btn {
    background: var(--gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1e3d73 0%, #3a7a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.security-notice .alert {
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    color: var(--text);
    border-left: 4px solid var(--info);
}

/* Dashboard Card Styles */
.dashboard-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dashboard-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.15);
}

.card-icon {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(74, 144, 164, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.2) 0%, rgba(74, 144, 164, 0.2) 100%);
    transform: scale(1.1);
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clickable-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.15);
}

.clickable-card:active {
    transform: translateY(-2px);
}

/* Device Management Styles */
.device-card {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.1);
}

.devices-table-card {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.1);
}

.table-header {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    padding: 1.25rem 1rem;
    border: none;
}

.table-header i {
    color: var(--white);
}

.device-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.device-row:hover {
    background-color: var(--accent);
}

.device-row td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.device-icon {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(74, 144, 164, 0.1) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patient-info {
    display: flex;
    align-items: center;
    color: var(--text);
}

.action-btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn i {
    color: var(--white);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.add-btn {
    background: var(--gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

 /* Update Device Info Button Styling */
 .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
    color:rgb(255, 255, 255)
}

.btn-info:active {
    transform: translateY(0);
}

/* Spinning animation for sync icon on hover */
.btn-info:hover .fa-sync-alt {
    animation: spin-slow 2s linear infinite;
}

.add-btn i {
    color: var(--white);
}

.btn-primary i {
    color: var(--white);
}

.btn-success i {
    color: var(--white);
}

.btn-danger i {
    color: var(--white);
}


.btn-secondary {
    background: #6c757d;
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: var(--white);
}

.btn-secondary i {
    color: var(--white);
}

.tutorial-icon {
    color: var(--primary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tutorial-icon:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.btn-info i {
    color: var(--white);
}


.add-btn:hover {
    background: linear-gradient(135deg, #1e3d73 0%, #3a7a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* ── Rename Email Modal ───────────────────────────────────────── */

/* Warning-themed modal header, consistent with gradient-red / --gradient patterns */
.modal-header-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #c78c0e 100%);
    color: var(--dark);
    border: none;
    padding: 1.5rem;
}

.modal-header-warning .modal-title {
    font-weight: 600;
    color: var(--dark);
}

/* Shared modal chrome */
.modal-card {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
}

.modal-body-padded {
    padding: 2rem;
}

.modal-footer-light {
    background: var(--light);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Email value inside the current-email alert */
.modal-email-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
}

/* Warning button: icon must be dark since the background is light yellow */
.btn-warning i {
    color: var(--dark);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* ── /Rename Email Modal ──────────────────────────────────────── */

.empty-state-card {
    border-left: 4px solid var(--info);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.1);
}

.empty-icon {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(74, 144, 164, 0.1) 100%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Enhanced Form Styles */
.form-label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.form-control {
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    background: var(--white);
}

/* Icon Container Styles */
.icon-container {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(74, 144, 164, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(74, 144, 164, 0.05) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

/* Badge Container Styles */
.badge-container .badge {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

/* Enhanced Tick Animation */
.tick-animation.enhanced {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin: 0 auto 20px;
    position: relative;
    animation: tick-animation 0.8s ease;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.tick-animation.enhanced::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 32px;
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Activity Card Styles */
.activity-card {
    border-left: 4px solid var(--primary);
}

.list-group-item {
    border-color: rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--accent);
}

/* User Dropdown Styles - Add to styles.css */

/* User dropdown button styling */
.user-dropdown {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.user-dropdown i {
    font-size: 1.25rem;
}

/* Dropdown menu styling */
.user-dropdown-menu {
    min-width: 220px;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.2);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
}

/* Dropdown header styling */
.user-dropdown-menu .dropdown-header {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem 0.75rem 0 0;
    margin: -0.5rem 0 0 0;
}

.user-dropdown-menu .dropdown-header i {
    color: var(--white);
}

/* Dropdown items styling */
.user-dropdown-menu .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 500;
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: var(--accent);
    padding-left: 1.5rem;
}

/* Logout item specific styling */
.user-dropdown-menu .logout-item {
    font-weight: 600;
}

.user-dropdown-menu .logout-item:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.user-dropdown-menu .logout-item i {
    color: var(--danger);
}

/* Divider styling */
.user-dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(44, 90, 160, 0.1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        min-width: 200px;
    }
    
    .user-dropdown span {
        display: none;
    }
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo i {
        font-size: 2rem !important;
    }
}

/* Responsive Design for Device Management */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .device-row td {
        padding: 1rem 0.5rem;
    }
    
    .device-icon {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design for Confirmation Pages */
@media (max-width: 576px) {
    .confirmation-header {
        padding: 1.5rem;
    }
    
    .confirmation-body {
        padding: 2rem 1.5rem;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
    
    .check-icon {
        width: 80px;
        height: 80px;
    }
    
    .icon-line.line-tip {
        top: 38px;
        left: 12px;
        width: 20px;
    }
    
    .icon-line.line-long {
        top: 30px;
        right: 6px;
        width: 38px;
    }
}

/* ── Responsive Video / iFrame Embed ─────────────────────────── */

/*
 * Intrinsic-ratio technique: the padding-top on the wrapper reserves
 * exactly 56.25% (= 9/16) of the element's width as vertical space,
 * so the iframe always fills it perfectly at 16:9 — on any screen size,
 * without horizontal or vertical scrollbars.
 */
 .video-container {
    position: relative;
    width: 100%;
    /* Never taller than viewport minus all surrounding chrome */
    height: calc(100vh - 40vh);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 576px) {
    .video-container {
        border-radius: 0.25rem;
        height: calc(100vh - 230px); /* mobile navbar is slightly taller */
    }
}