/* Digital Pilot Logbook - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('images/others.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

body.login-page {
    background: url('images/login.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.signup-page {
    background: url('images/sign in.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.profile-page {
    background: url('images/profile.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-icon {
    width: 50px;
    height: 50px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Main Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(60, 60, 120, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    width: 100%;
}

.card h1 {
    color: white;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid white;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.form-row label {
    min-width: 200px;
    color: white;
    font-size: 1.3rem;
    text-align: right;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(200, 150, 100, 0.8);
    color: white;
}

.form-row input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Button Styles */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: rgba(200, 150, 100, 0.9);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: rgba(220, 170, 120, 1);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(150, 100, 80, 0.9);
    color: white;
}

.btn-secondary:hover {
    background: rgba(170, 120, 100, 1);
}

.btn-black {
    background: black;
    color: white;
    padding: 12px 35px;
}

.btn-black:hover {
    background: #222;
}

.btn-container {
    text-align: center;
    margin-top: 30px;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Welcome Section */
.welcome-text {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.welcome-text .pilot-name {
    font-style: italic;
    font-weight: 300;
}

.stats {
    text-align: center;
    margin: 40px 0;
}

.stats h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats .hours {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(200, 150, 100, 1);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

table th {
    background: rgba(100, 100, 150, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.3rem;
    border: 2px solid rgba(80, 80, 120, 0.9);
}

table td {
    background: rgba(60, 60, 100, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    border: 2px solid rgba(80, 80, 120, 0.9);
}

table tr {
    cursor: pointer;
}

table tr:hover td {
    background: rgba(80, 80, 120, 0.9);
}

.table-note {
    color: white;
    font-style: italic;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.info-item {
    color: white;
}

.info-item strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1.2rem;
}

/* Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    width: 70px;
    height: 70px;
    fill: white;
}

/* Settings Styles */
.settings-section {
    margin-bottom: 50px;
}

.settings-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.theme-selector {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.theme-selector label {
    color: white;
    font-size: 1.3rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-custom {
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.radio-custom.checked {
    background: rgba(100, 200, 200, 0.8);
}

/* Aircraft Management */
.add-aircraft-btn {
    margin-bottom: 30px;
    text-align: center;
}

.aircraft-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.aircraft-inputs input {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* Statistics Display */
.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.stats-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.stat-row label {
    font-size: 1.5rem;
}

.stat-row .stat-value {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 1.3rem;
    color: #333;
    min-width: 150px;
    text-align: center;
}

.aircraft-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(60, 60, 100, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.auth-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid white;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.auth-link a {
    color: rgba(100, 200, 255, 1);
    text-decoration: underline;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-row label {
        text-align: left;
        min-width: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .aircraft-inputs {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 10px 5px;
    }
}
