/* Dashboard CSS - Simple Black & White Theme */

body {
    font-family: Arial, sans-serif;
    background: white;
    color: black;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    font-size: 0.8rem !important;
}

.dashboard-container {
    flex: 1;
    padding: 0;
    margin-left: 180px;
    background-color: #f2f2f2;
    width: calc(100% - 250px);
    min-height: 100vh;
    box-sizing: border-box;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background: white;
    border-right: 2px solid black;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    background: white;
    padding: 1.5rem;
    /* border: 0px solid black; */
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 1.0rem;
    margin: 0;
    color: black;
    padding-left: 45px;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: black;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
}

.sidebar-brand .logo-image {
    width: 180px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    padding: 12px 16px;
    border: 0px solid black;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: black;
    color: white;
}

.menu-item.active {
    background: black;
    color: white;
}

/* Menu Separator */
.menu-separator {
    height: 1px;
    background-color: #ddd;
    margin: 15px 16px;
    padding-bottom: 1px;
}

.logout-section {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid black;
}

.logout-btn {
    padding: 12px 16px;
    border: 1px solid black;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
}

.logout-btn:hover {
    background: black;
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border: 0px solid black;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: black;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid black;
}

.info-label {
    font-weight: bold;
    color: black;
}

.info-value {
    font-family: monospace;
    background: black;
    color: white;
    padding: 4px 8px;
}

.success-message {
    background: white;
    color: black;
    padding: 12px;
    border: 0px solid black;
    margin-bottom: 2rem;
    text-align: center;
}

.info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border: 2px solid #bee5eb;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid black;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: black;
}

.stat-label {
    font-size: 0.9rem;
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .dashboard-container {
        margin-left: 0;
        margin-bottom: 200px;
        background-color: #f2f2f2;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 200px;
        border-right: none;
        border-top: 2px solid black;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .menu-items {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .menu-item {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .logout-section {
        margin-top: 0;
        margin-left: auto;
        padding-top: 0;
        padding-left: 1rem;
        border-top: none;
        border-left: 2px solid black;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
}

/* Login Styles - Integrated in main CSS */
.login-container {
    background: white;
    padding: 2rem;
    border: 0px solid black;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.login-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: black;
}

.login-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: black;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: black;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    background: white;
    color: black;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border: 0px solid black;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: 0px solid black;
    background: black;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.login-btn:hover {
    background: white;
    color: black;
}

.error-message {
    background: white;
    color: black;
    padding: 10px;
    border: 0px solid black;
    margin-bottom: 1rem;
}

.laravel-info {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: black;
}

/* Layout adjustments for login page */
body:has(.login-container) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
}

body:has(.login-container) .dashboard-container {
    margin-left: 0;
    padding: 0;
    flex: none;
}

/* Profile Page Styles */
.profile-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border: 0px solid black;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.profile-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: black;
}

.profile-form .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    background: white;
    color: black;
    font-size: 1rem;
    box-sizing: border-box;
}

.profile-form .form-input:focus {
    outline: none;
    border: 0px solid black;
}

.profile-form .form-input.disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.profile-btn {
    width: 100%;
    padding: 12px;
    border: 0px solid black;
    background: black;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.profile-btn:hover {
    background: white;
    color: black;
}

.profile-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: black;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
}

/* Users Page Styles */
.users-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: black;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid black;
    padding-bottom: 1rem;
}

.users-summary {
    background: white;
    padding: 1rem;
    border: 0px solid black;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.add-user-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-user-btn:hover {
    background: white;
    color: #28a745;
}

.users-table-container {
    background: white;
    border: 0px solid black;
    overflow-x: auto;
    margin-bottom: 2rem;
}

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

.users-table thead tr {
    background-image: linear-gradient(234deg, #31884D 29%, #102526 100%);
}

.users-table th {
    background: transparent;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: left;
    border: 0px solid black;
}

.users-table td {
    padding: 10px 12px;
    border: 1px solid black;
    vertical-align: middle;
}

.users-table tr:nth-child(even) {
    background: #f9f9f9;
}

.users-table tr:hover {
    background: #e9e9e9;
}

.current-user {
    font-weight: bold;
    color: #007bff;
    font-size: 0.8rem;
}

.status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.active {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.role {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.role.admin {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.role.user {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.users-info {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px solid black;
    font-size: 0.9rem;
    color: #666;
}

.users-info p {
    margin: 0.5rem 0;
}

/* Admin Section Styles */
.admin-section {
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.admin-section .card-title {
    color: #dc3545;
    padding-bottom: 0.5rem;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.admin-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 0.3rem;
}

.admin-stat .stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}

/* Add User Form Styles */
.add-user-form {
    background: white;
    border: 2px solid #28a745;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

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

.form-container {
    padding: 2rem;
}

.form-container h3 {
    color: #28a745;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: black;
}

.form-input, select.form-input {
    padding: 10px;
    border: 1px solid black;
    background: white;
    color: black;
    font-size: 1rem;
}

.form-input:focus, select.form-input:focus {
    outline: none;
    border: 2px solid #28a745;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: white;
    color: #28a745;
}

.cancel-btn {
    background: #dc3545;
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: white;
    color: #dc3545;
}

/* Responsive Form */
@media (max-width: 768px) {
    .users-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* User Actions Styles */
.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.change-password-btn {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.change-password-btn:hover {
    background: white;
    color: #28a745;
}

.edit-role-btn {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.edit-role-btn:hover {
    background: white;
    color: #007bff;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: white;
    color: #dc3545;
}

.protected-user {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    display: inline-block;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #333;
}

.warning-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirm-delete-btn {
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.confirm-delete-btn:hover {
    background: white;
    color: #dc3545;
}

.cancel-delete-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cancel-delete-btn:hover {
    background: white;
    color: #6c757d;
}

/* Edit Role Modal Styles */
.confirm-edit-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.confirm-edit-btn:hover {
    background: white;
    color: #007bff;
}

.cancel-edit-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cancel-edit-btn:hover {
    background: white;
    color: #6c757d;
}

#editRoleModal .form-group {
    margin: 1.5rem 0;
    text-align: left;
}

#editRoleModal .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

#editRoleModal .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#editRoleModal .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .change-password-btn, .edit-role-btn, .delete-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

.admin-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    background: white;
    color: #dc3545;
}

.admin-info {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.admin-info ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.2rem;
}

.admin-info li {
    margin-bottom: 0.3rem;
    color: #666;
}

/* Responsive Users Table */
@media (max-width: 768px) {
    .users-table-container {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .users-summary {
        font-size: 0.9rem;
    }
}






.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background-image: linear-gradient(234deg, #31884D 29%, #102526 100%);
    border-right: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    color: #e6eef6;
}

.sidebar-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #e6eef6;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e6eef6;
    background: transparent;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s;
    font-weight: 600;
}

.menu-item .icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfe7ff;
    font-size: 18px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    transform: translateY(-1px);
}

/* active state */
.menu-item.active,
.menu-item.active:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.sidebar .separator {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin: 12px 0;
}

.logout-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.menu-item .label { display: inline-block; line-height: 1; }

/* responsive */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
        gap: 8px;
    }
    .menu-items { flex-direction: row; gap: 8px; margin-top: 0; }
    .sidebar-title { display: none; }
    .menu-item { padding: 8px 10px; border-radius: 6px; }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background-image: linear-gradient(234deg, #31884D 29%, #102526 100%);
    border-right: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    color: #e6eef6;
}

.sidebar-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #e6eef6;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e6eef6;
    background: transparent;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s;
    font-weight: 600;
}

.menu-item .icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfe7ff;
    font-size: 18px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    transform: translateY(-1px);
}

/* active state */
.menu-item.active,
.menu-item.active:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.sidebar .separator {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin: 12px 0;
}

.logout-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.menu-item .label { display: inline-block; line-height: 1; }

/* responsive */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
        gap: 8px;
    }
    .menu-items { flex-direction: row; gap: 8px; margin-top: 0; }
    .sidebar-title { display: none; }
    .menu-item { padding: 8px 10px; border-radius: 6px; }
}
/* Dashboard content areas need padding since container has none */
.dashboard-container .header,
.dashboard-container .dashboard-grid,
.dashboard-container .users-table-container,
.dashboard-container .table-container,
.dashboard-container > div:not(.horizontal-layout) {
    /* padding: 20px; */
}

/* Exception: horizontal layout handles its own padding */
.dashboard-container .horizontal-layout {
    padding: 0;
}


