/* Kiro License Panel - Flat Design CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Color Palette - Solid, Matte Colors Only */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.login-header .logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-form {
    padding: 30px 20px;
}

/* Input Groups - Icon + Input + Action Layout */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-icon {
    padding: 0 15px;
    color: var(--gray-500);
    font-size: 16px;
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 16px;
    background: transparent;
}

.input-group input::placeholder {
    color: var(--gray-500);
}

.input-action {
    padding: 0 10px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-700);
}

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

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

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fdf2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #92400e;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-label .btn-icon {
    margin-left: 8px;
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.form-label .btn-icon:hover {
    background: var(--light-color);
    transform: rotate(180deg);
}

.form-label .btn-icon:active {
    transform: rotate(360deg);
}

.form-label.required .required-mark {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-input {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
}

.form-help {
    color: var(--gray-600);
    font-size: 13px;
    margin-top: 5px;
}

.form-field.has-error .form-control {
    border-color: var(--danger-color);
}

.form-actions {
    margin-top: 25px;
}

/* Login Footer */
.login-footer {
    background: var(--gray-100);
    padding: 20px;
    border-top: 1px solid var(--gray-300);
}

.default-credentials {
    background: var(--warning-color);
    color: var(--white);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.default-credentials h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.default-credentials p {
    margin-bottom: 5px;
    font-size: 13px;
}

.default-credentials small {
    font-size: 12px;
    opacity: 0.9;
}

.system-info {
    text-align: center;
    color: var(--gray-600);
}

.system-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.system-info small {
    font-size: 12px;
}

/* Error Pages */
.error-page {
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-container {
    width: 100%;
    max-width: 500px;
}

.error-box {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

.error-icon {
    background: var(--danger-color);
    color: var(--white);
    padding: 40px 20px;
}

.error-icon span {
    font-size: 72px;
    font-weight: bold;
}

.error-content {
    padding: 30px 20px;
}

.error-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-footer {
    background: var(--gray-100);
    padding: 20px;
    border-top: 1px solid var(--gray-300);
    color: var(--gray-600);
}

/* Responsive Grid System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-2 {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-3 {
    flex: 0 0 33.333333%;
    padding: 0 15px;
}

.col-4 {
    flex: 0 0 25%;
    padding: 0 15px;
}

/* Mobile Responsive - Stack Vertically */
@media (max-width: 768px) {
    .col-2,
    .col-3,
    .col-4 {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Status Indicators - Color Coded */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: var(--success-color);
    color: var(--white);
}

.status-inactive {
    background: var(--danger-color);
    color: var(--white);
}

.status-pending {
    background: var(--warning-color);
    color: var(--white);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--gray-600); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
/
* Dashboard Styles */
.dashboard-page {
    background: var(--gray-100);
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo i {
    font-size: 24px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--gray-600);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--danger-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.page-header p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    background: var(--primary-color);
}

.stat-icon.success {
    background: var(--success-color);
}

.stat-icon.info {
    background: var(--info-color);
}

.stat-icon.warning {
    background: var(--warning-color);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-color);
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 5px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.action-content h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.action-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.4;
}

/* Recent Section */
.recent-section {
    margin-bottom: 40px;
}

.recent-section h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Data Table */
.table-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    padding: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--gray-100);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid var(--gray-300);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--gray-50);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}
/* 
Dashboard Layout */
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: var(--gray-200);
}

.header h1 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions span {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
}

.header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Sidebar Navigation */
.sidebar {
    background: #f8f9fa;
    width: 260px;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 50;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
}

.nav-menu {
    list-style: none;
    padding: 15px 10px;
    flex: 1;
    overflow-y: auto;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.nav-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-menu li {
    margin-bottom: 2px;
}

/* Section Headers */
.nav-menu .nav-section {
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 0 16px;
}

.nav-menu .nav-section:first-child {
    margin-top: 0;
}

.nav-menu .nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 8px 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    background: transparent;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 3px;
    background: var(--primary-color);
    transition: height 0.2s ease;
    border-radius: 0 3px 3px 0;
}

.nav-menu a:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateX(2px);
}

.nav-menu a:hover::before {
    height: 60%;
}

.nav-menu a.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.nav-menu a.active::before {
    height: 70%;
    background: #1976d2;
}

.nav-menu a .nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-menu a.active .nav-icon {
    opacity: 1;
}

.nav-menu a .nav-text {
    flex: 1;
    font-size: 14px;
}

.nav-menu a .nav-badge {
    background: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.sidebar-footer-content {
    color: #6c757d;
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
}

.sidebar-footer-content strong {
    color: #495057;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    background: var(--gray-100);
}

/* Dashboard Specific */
.dashboard h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 28px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
}

.stat-content h3 {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-color);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Recent Activity */
.recent-activity {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.recent-activity h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 12px;
    color: var(--gray-500);
    min-width: 50px;
}

.activity-content {
    flex: 1;
    font-size: 14px;
}

/* System Info */
.system-info {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.system-info h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: var(--gray-700);
}

.info-item span {
    color: var(--dark-color);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile Responsive for Dashboard */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header-actions span {
        display: none;
    }
    
    .header-actions .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        top: 0;
        height: 100vh;
        z-index: 100;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    /* DataTables Mobile */
    .dataTables_wrapper {
        overflow-x: auto;
    }
    
    .dataTables_wrapper table {
        min-width: 600px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Form Grid Mobile */
    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .form-field-full {
        grid-column: 1;
    }
}
/*
 Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-grid .form-field-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Module Selection */
.module-selection {
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 20px;
    background: var(--gray-50);
}

.module-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
}

.module-selection-header h4 {
    margin: 0;
    color: var(--dark-color);
}

.module-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-item:hover {
    border-color: var(--primary-color);
    background: var(--gray-100);
}

.module-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.module-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.module-item.selected {
    border-color: var(--primary-color);
    background: var(--light-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--dark-color);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.toast-success {
    border-left-color: var(--success-color);
}

.toast.toast-error {
    border-left-color: var(--danger-color);
}

.toast.toast-warning {
    border-left-color: var(--warning-color);
}

.toast.toast-info {
    border-left-color: var(--info-color);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.toast-message {
    font-size: 14px;
    color: var(--gray-700);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--gray-200);
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Log Details Modal */
.log-details {
    font-family: 'Courier New', monospace;
    background: var(--gray-100);
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
}

.log-details-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-300);
}

.log-details-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.log-details-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.log-details-value {
    color: var(--dark-color);
    word-break: break-all;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-icon-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon-action.btn-view {
    background: var(--info-color);
    color: var(--white);
}

.btn-icon-action.btn-view:hover {
    background: #2980b9;
}

.btn-icon-action.btn-edit {
    background: var(--warning-color);
    color: var(--white);
}

.btn-icon-action.btn-edit:hover {
    background: #e67e22;
}

.btn-icon-action.btn-delete {
    background: var(--danger-color);
    color: var(--white);
}

.btn-icon-action.btn-delete:hover {
    background: #c0392b;
}

/* Tooltip - handled by JavaScript */
.custom-tooltip {
    /* Styles are inline in tooltip.js */
}

/* DataTables Overflow Fix */
.dataTables_wrapper {
    overflow: visible !important;
}

.dataTables_wrapper table {
    overflow: visible !important;
}

.dataTables_wrapper tbody {
    overflow: visible !important;
}

.dataTables_wrapper tr {
    overflow: visible !important;
}

.dataTables_wrapper td {
    overflow: visible !important;
}


/* cPanel Management Styles */
.cpanel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cpanel-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cpanel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cpanel-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.cpanel-card p {
    color: var(--gray-600);
    margin-bottom: 15px;
}

.cpanel-card .btn {
    width: 100%;
}

/* Backup Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.backup-card {
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
    text-align: center;
}

.backup-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.backup-card p {
    color: var(--gray-600);
    margin-bottom: 15px;
    font-size: 0.9em;
}

.backup-card .btn {
    width: 100%;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 20px 0;
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
}

table.dataTable thead th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

table.dataTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-300);
}

table.dataTable tbody tr:hover {
    background-color: var(--gray-100);
}

.dataTables_filter input {
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_length select {
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    padding: 6px 12px;
    margin: 0 8px;
}

.dataTables_info {
    color: var(--gray-600);
    padding-top: 10px;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--gray-100);
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
