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

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

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

/* login page styles */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 28px;
    color: #2c3e50;
}

.form-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
    width: auto;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #2980b9;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 14px;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

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

/* Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
}

.user-profile {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.account-number {
    font-size: 14px;
    color: #bdc3c7;
}

.side-nav ul {
    list-style: none;
}

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

.side-nav a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s;
}

.side-nav a:hover {
    background-color: #34495e;
}

.side-nav li.active a {
    background-color: #34495e;
    border-left: 4px solid #3498db;
}

/* Content Area Styles */
.content {
    flex: 1;
    padding: 30px;
}

.welcome-panel {
    margin-bottom: 30px;
}

.welcome-panel h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.welcome-panel p {
    color: #7f8c8d;
}

.account-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    min-width: 200px;
}

.balance-card h3 {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.panel h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

/* Personal Information Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
}

/* Inquiries Table */
.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.inquiries-table th, 
.inquiries-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.inquiries-table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

.inquiries-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background-color: #3498db;
    color: white;
}

.status-rejected {
    background-color: #FF0000;
    color: white;
}

.status-in_progress {
    background-color: #f39c12;
    color: white;
}

.status-resolved {
    background-color: #2ecc71;
    color: white;
}

.status-closed {
    background-color: #7f8c8d;
    color: white;
}

.view-btn, .btn-view {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.3s;
}

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

.view-all {
    text-align: center;
    margin-top: 15px;
}

.view-all a {
    color: #3498db;
    text-decoration: none;
}

.view-all a:hover {
    text-decoration: underline;
}

/* Contact Support Panel */
.contact-support {
    text-align: center;
}

.contact-support p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.support-btn {
    background-color: #2ecc71;
}

.support-btn:hover {
    background-color: #27ae60;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #ecf0f1;
}

/* Inquiries Section */
.inquiries-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.no-inquiries {
    padding: 40px;
    text-align: center;
    color: #7f8c8d;
}

.no-inquiries p {
    margin-bottom: 20px;
}

.create-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.create-btn:hover {
    background-color: #2980b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination li.active a {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Inquiry Details */
.inquiry-details {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    display: none;
}

.details-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-header h3 {
    color: #2c3e50;
    font-size: 18px;
}

.close-details {
    color: #7f8c8d;
    font-size: 22px;
    cursor: pointer;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
}

.additional-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.additional-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.additional-info p {
    color: #2c3e50;
    white-space: pre-line;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
}

/* Form Styles */
.inquiry-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.readonly-field {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .user-profile {
        display: flex;
        align-items: center;
        text-align: left;
        padding-bottom: 15px;
    }
    
    .avatar {
        margin: 0 15px 0 0;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .side-nav {
        margin-top: 10px;
    }
    
    .side-nav ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    .side-nav li {
        margin-right: 2px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-panel h2 {
        font-size: 24px;
    }
    
    .account-summary {
        flex-direction: column;
    }
    
    .inquiries-table {
        display: block;
        overflow-x: auto;
    }
    
    .header {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .side-nav ul {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .nav-links {
        margin-top: 10px;
    }
    
    .nav-links a {
        margin: 0 10px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}