/* Professional Leave Management System CSS */

:root {
    /* Enhanced Professional Color Palette */
    --primary-color: linear-gradient(to right, #3b82f6, #14b8a6);
    --primary-gradient: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2156d2;
    --light-color: #f8f9fa;
    --text-color: #2156d2;
    --border-color: #bdc3c7;
    --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
    --shadow-medium: 0 8px 25px rgba(44, 62, 80, 0.15);
    --shadow-heavy: 0 15px 35px rgba(44, 62, 80, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, #3b82f6, #14b8a6);
    min-height: 100vh;
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;

}

body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    z-index: -1;
    animation: marbleFloat 20s infinite ease-in-out;
}

body::before {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

body::after {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 25%;
    animation-delay: -10s;
}

@keyframes marbleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}



/* Container */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

/* Professional Background Elements */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
}

.bg-shapes::before,
.bg-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    animation: float 30s infinite ease-in-out;
}

.bg-shapes::before {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: -15s;
}

.bg-shapes::after {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 15%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.03;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.05;
    }
}

/* Header Section - Professional Styling */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 35px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85));


    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(189, 195, 199, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--primary-gradient);
    padding: 3px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 3px);
    background: white;
    padding: 8px;
}

.title-text {
    flex: 1;
}

.main-title {


    font-size: 24px;
    font-weight: 700;
    color: rgb(0, 119, 255);
    margin: 0;
    letter-spacing: -0.5px;
}

.subtitle {

    font-size: 14px;
    color: rgb(0, 119, 255);
    margin: 5px 0 0 0;
    font-weight: 500;
}

.right-section {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 100px;
}

.contact-info {
    line-height: 1.4;
    text-align: right;
}

.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn i {
    margin-right: 6px;
    font-size: 12px;

}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #14b8a6);
    color: rgb(255, 255, 255);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Professional Form Sections */
.selection-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    border: 1px solid rgba(189, 195, 199, 0.2);
    position: relative;
}

.selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.selection-row {
    display: flex;
    gap: 25px;
    margin-bottom: 0;
    align-items: end;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 13px;
    display: block;
}

.form-label i {
    margin-right: 6px;
    color: var(--secondary-color);
    font-size: 12px;
}

.form-control {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    font-size: 14px;
    transition: var(--transition);
    background: #ffffff;
    color: var(--text-color);
    min-height: 50px;
    font-family: var(--font-primary);


    /* Professional dropdown styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Professional Description Section */
.description-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    min-height: 400px;
    border: 1px solid rgba(189, 195, 199, 0.2);
    position: relative;
}

.description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.description-section h4 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.description-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Professional PDF Downloads */
.pdf-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pdf-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.4s ease;
    z-index: -1;
}

.pdf-item:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.pdf-item:hover::before {
    left: 0;
}

.pdf-item i {
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.pdf-item:hover i {
    color: white;
}

.pdf-item span {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
}

/* Professional Footer */
.footer-section {
    text-align: center;
    padding: 25px;
    background: rgba(29, 25, 34, 0.833);
    backdrop-filter: blur(10px);
    color: rgb(247, 247, 247);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-size: 13px;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Professional Loading Animation */
.loading-animation {
    display: none;
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Professional Responsive Design */
@media (max-width: 768px) {
    .home-container {
        padding: 20px 15px;
    }

    .header-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .title-section {
        flex-direction: column;
        gap: 15px;
    }

    .main-title {
        font-size: 20px;
    }

    .selection-row {
        flex-direction: column;
        gap: 20px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .pdf-downloads {
        grid-template-columns: 1fr;
    }

    .selection-section,
    .description-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Professional Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Professional Animation Classes */
.animate__animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Page Load Animation */
.header-section,
.selection-section,
.description-section {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Focus States */
.btn:focus,
.form-control:focus {
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Print Styles */
@media print {

    .bg-shapes,
    .auth-buttons {
        display: none !important;
    }

    .header-section,
    .selection-section,
    .description-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* index php ends */

/* header php styles integrated above */

/* login php css placeholder - styles to be added here */