/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body, html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
height: 100%;
width: 100%;
/* background: linear-gradient(135deg, #15008D 0%, #4a0072 100%); */
background: linear-gradient(180deg, #00008B 0%, #5f008b 100%);
}

.logo-container {
text-align: center;
margin-bottom: 32px;
}

.logo-above {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 280px));
    text-align: center;
}

.logo-above img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.login-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}
.subtitle {
color: #666;
font-size: 14px;
margin-bottom: 32px;
}

.form-group {
margin-bottom: 24px;
position: relative;
}

label {
display: block;
margin-bottom: 8px;
color: #333;
font-weight: 500;
font-size: 14px;
}

input {
width: 100%;
padding: 14px 16px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 15px;
transition: all 0.3s;
background: #fafafa;
}

input:focus {
outline: none;
border-color: #7601B3;
background: white;
box-shadow: 0 0 0 3px rgba(118, 1, 179, 0.1);
}

.password-wrapper {
position: relative;
}

.password-wrapper input {
padding-right: 48px;
}

.toggle-password {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
color: #666;
font-size: 20px;
padding: 4px;
transition: color 0.3s;
display: flex;
align-items: center;
justify-content: center;
}

.toggle-password:hover {
color: #7601B3;
}

.btn {
width: 100%;
padding: 16px;
background: linear-gradient(135deg, #7601B3 0%, #9c1fd9 100%);
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 12px rgba(118, 1, 179, 0.3);
}

.btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(118, 1, 179, 0.4);
}

.btn:active {
transform: translateY(0);
}

.error {
background: #fee;
color: #c33;
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 14px;
border-left: 4px solid #c33;
}

.hidden {
display: none !important;
}

/* Dashboard Layout */
.dashboard-container {
display: flex;
height: 100vh;
width: 100%;
}

.side-nav {
width: 280px;
background: linear-gradient(180deg, #00008B 0%, #5f008b 100%);
display: flex;
flex-direction: column;
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.nav-logo-section {
    padding: 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.nav-logo-section img {
    width: 140px;
    height: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    
}

.nav-header {
padding: 24px 24px 16px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-text {
font-size: 16px;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 2px;
font-weight: 600;
}

.user-name {
font-size: 25px;
font-weight: 600;
color: white;
}

.dashboard-section {
padding: 20px 16px;
flex: 1;
overflow-y: auto;
}

.section-title {
font-size: 15px;
color: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 8px;
font-weight: 600;
padding-left: 8px;
}

.dashboard-list {
list-style: none;
}

.dashboard-list li {
margin-bottom: 6px;
}

.dashboard-list button {
width: 100%;
padding: 12px 14px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
cursor: pointer;
transition: all 0.3s;
color: white;
font-weight: 500;
font-size: 16px;
text-align: left;
backdrop-filter: blur(10px);
}

.dashboard-list button:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.2);
transform: translateX(4px);
}

.dashboard-list button.active {
background: white;
color: #7601B3;
border-color: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-section {
padding: 20px 24px 24px 24px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
width: 100%;
padding: 14px 16px;
background: rgba(231, 76, 60, 0.9);
border: 1px solid rgba(231, 76, 60, 1);
border-radius: 10px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
color: white;
transition: all 0.3s;
}

.logout-btn:hover {
background: #c0392b;
border-color: #c0392b;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.logout-btn:active {
transform: translateY(0);
}

.changepassword-section {
padding: 14px 24px 24px 24px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.changepassword-btn {
width: 100%;
padding: 14px 16px;
background: white;
border: 1px solid white;
border-radius: 10px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
color: #7601B3;
transition: all 0.3s;
}

.changepassword-btn:hover {
background: #7601B3;
border-color: #7601B3;
transform: translateY(-2px);
box-shadow: 0 4px 12px #49205f;
color: white;
}

.changepassword-btn:active {
transform: translateY(0);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
}

.btn-secondary {
    
background: rgba(231, 76, 60, 0.9);
border: 1px solid rgba(231, 76, 60, 1);
}

.btn-secondary:hover {
    
background: #c0392b;
border-color: #c0392b;
box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}


.dashboard-main {
flex: 1;
background: #f5f5f5;
padding: 20px;
overflow: hidden;
}

.dashboard-frame {
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.user-dashboard-table {
width: 100%;
border-collapse: collapse;
margin-top: 16px;
background: white;
border-radius: 8px;
overflow: hidden;
}

.user-dashboard-table th,
.user-dashboard-table td {
padding: 14px 16px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}

.user-dashboard-table th {
background: linear-gradient(135deg, #7601B3 0%, #9c1fd9 100%);
color: white;
font-weight: 600;
font-size: 14px;
}

.user-dashboard-table tr:last-child td {
border-bottom: none;
}

.user-dashboard-table tr:hover {
background: #f8f8f8;
}

/* Scrollbar Styling */
.dashboard-section::-webkit-scrollbar {
width: 6px;
}

.dashboard-section::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}

.dashboard-section::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
}

.dashboard-section::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
.login-card {
    width: 90%;
    padding: 32px 24px;
}

.side-nav {
    width: 150px;
    
/* font-weight: 200;
font-size: 11px; */
}

.dashboard-main {
    padding: 12px;
}
}
