/* 
 * UMZA AIR Airline Customer Complaint Management System
 * Custom Styling System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #74D343;
    --dark-green: #4CAF1A;
    --light-green: #8BE85B;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #333333;
    --light-gray: #E0E0E0;
    
    --font-primary: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--gray);
    color: var(--dark-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary-green);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 700;
    font-size: 1.5rem;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--dark-green);
}

.btn-nav {
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-nav:hover {
    background-color: var(--dark-green);
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--white) 0%, #EBF8E3 100%);
    padding: 50px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(116, 211, 67, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
}

/* Container Split for Forms/Actions */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .portal-grid {
        grid-template-columns: 3fr 2fr;
    }
}

/* Card Component */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
}

.card-title {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

@media(min-width: 576px) {
    .form-row.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.required::after {
    content: ' *';
    color: #DC3545;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: var(--gray);
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(116, 211, 67, 0.2);
    background-color: var(--white);
}

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

.notice-box {
    background-color: #EBF8E3;
    border-left: 4px solid var(--primary-green);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6C757D;
}
.btn-secondary:hover {
    background-color: #5A6268;
}

.btn-danger {
    background-color: #DC3545;
}
.btn-danger:hover {
    background-color: #C82333;
}

.btn-block {
    display: block;
    width: 100%;
}

/* OTP Container styling */
.otp-verify-section {
    background-color: #F8FFF5;
    border: 1px dashed var(--primary-green);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.otp-digit {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.otp-digit:focus {
    border-color: var(--primary-green);
    outline: none;
}

/* Status & Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

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

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

/* Success Layout */
.success-card {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

/* Table styling for tracking and dashboard */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    background-color: #F8F9FA;
    font-weight: 700;
    color: var(--dark-gray);
}

tr:hover {
    background-color: #FAFAFA;
}

/* Admin Dashboard CSS */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    border-top: 4px solid var(--primary-green);
}

.stat-card.pending { border-top-color: #FFC107; }
.stat-card.resolved { border-top-color: #28A745; }
.stat-card.cancelled { border-top-color: #DC3545; }
.stat-card.invalid { border-top-color: #FD7E14; }

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 10px 0;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Timelines */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-green);
}

.timeline-date {
    font-size: 0.8rem;
    color: #888;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-green);
}

.timeline-content {
    font-size: 0.9rem;
    margin-top: 5px;
    background-color: var(--gray);
    padding: 10px;
    border-radius: var(--radius-sm);
}

/* Footer styling */
footer {
    background-color: var(--dark-gray);
    color: #BBBBBB;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 3px solid var(--primary-green);
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
