/* Global styling */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #0f172a;
}

.app-body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.78)), url("img/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-shell {
    padding: 24px 15px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gitub support sticky */
.github-sticky {
    position: fixed;
    bottom: 18px;
    left: 20px;
    z-index: 10;
}

.github-sticky p {
    margin: 0;
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.github-sticky a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
}

.github-sticky a:hover {
    color: #ffffff;
}

/* Main card */
.app-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.32);
    background: rgba(255, 255, 255, 0.96);
}

.app-card-header {
    background: linear-gradient(135deg, #0f172a, #2563eb 70%, #4f46e5);
    color: #f8fafc;
    padding: 2rem 1.5rem;
}

.app-card-header h1 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
    font-weight: 700;
}

.app-card-header .lead {
    color: #dbeafe;
    font-size: 1.05rem;
}

.app-card .card-body {
    padding: 2rem 2rem 2.5rem;
}

/* Main Icon on app page */
#email-icon {
    display: block;
    width: 96px;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Form styling */
.app-form label {
    font-weight: 700;
    color: #334155;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.app-form p,
.app-form li {
    color: #475569;
    line-height: 1.7;
}

.app-form .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.82rem 1rem;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.app-form .custom-file-input {
    cursor: pointer;
}

.app-form .custom-file-label {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.82rem 1rem;
    background-color: #f8fafc;
    color: #475569;
}

.app-form .btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-form .btn-primary:hover,
.app-form .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.3);
}

.app-form .btn-sm {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    background-color: #2563eb;
    border: 0;
}

.app-form .btn-sm:hover {
    background-color: #1d4ed8;
}

.app-form .alert-secondary {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    color: #334155;
}

/* Zaqar Quote */
blockquote {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2563eb;
    border-bottom: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.03));
    color: #475569;
    font-style: italic;
    text-align: left;
}

/* Email Review page */
table td:first-child {
    font-weight: bold;
    width: 25%;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .page-shell {
        padding: 16px 10px 60px;
    }

    .app-card .card-body {
        padding: 1.25rem;
    }

    .app-card-header {
        padding: 1.4rem 1rem;
    }

    .app-card-header h1 {
        font-size: 1.55rem;
    }

    .github-sticky {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }

    .github-sticky p {
        display: inline-block;
    }
}
