* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* हेडर स्टाइल */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area h1 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-area p {
    color: #666;
    font-size: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-detail {
    text-align: right;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-role {
    color: #667eea;
    font-size: 12px;
}

/* नेविगेशन */
nav {
    background: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #495057;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #667eea;
    color: white;
}

/* मेन कंटेंट */
.main-content {
    flex: 1;
    margin-top: 130px;
    margin-bottom: 60px;
    padding: 30px;
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* फूटर */
footer {
    background: white;
    padding: 15px;
    text-align: center;
    color: #666;
    border-top: 1px solid #e9ecef;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 14px;
}

/* कार्ड स्टाइल */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.card-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* फॉर्म स्टाइल */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* बटन स्टाइल */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-warning {
    background: #ed8936;
    color: white;
}

/* टेबल स्टाइल */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th {
    background: #667eea;
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #4a5568;
}

.table tr:hover {
    background: #f7fafc;
}

/* अलर्ट/नोटिफिकेशन */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert-danger {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #f56565;
}

/* मोबाइल रिस्पॉन्सिव */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        margin-top: 15px;
        flex-direction: column;
    }
    
    .nav-menu {
        padding: 0 15px;
    }
    
    .main-content {
        margin-top: 180px;
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 15px;
    }
}

/* डैशबोर्ड कार्ड */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
}

.dashboard-card-title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.dashboard-card-value {
    font-size: 32px;
    font-weight: bold;
}

/* पेमेंट मोड */
.payment-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ड्यू लिस्ट */
.due-list {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* प्रिंट स्टाइल */
@media print {
    header, nav, footer, .btn {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}