*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial;
}

body{
    background:linear-gradient(to right,#b7f8c8,#dfffe7,#ffffff);
    min-height:100vh;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-container{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.glass-box{
    width:500px;
    padding:60px;
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(10px);
    border-radius:25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo{
    margin-bottom:20px;
}

.logo-icon{
    font-size:60px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.glass-box h1{
    color:#145a32;
    font-size:40px;
    margin-bottom:15px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-box p{
    color:#1e8449;
    margin-bottom:30px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.main-btn{
    background:#32cd32;
    color:white;
    text-decoration:none;
    padding:15px 40px;
    border-radius:15px;
    transition:0.3s;
    font-weight:bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.main-btn:hover{
    background:#145a32;
    transform:scale(1.1);
}

.form-container{
    width:450px;
    margin:50px auto;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
}

.back-home-link,
.back-home-inline a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:white;
    text-decoration:none;
    font-weight:700;
    padding:12px 18px;
    border:none;
    border-radius:10px;
    transition:0.2s ease;
    background:#32cd32;
}

.back-home-link:hover,
.back-home-inline a:hover{
    background:#145a32;
}

.back-home-inline{
    margin-right:12px;
}

.form-footer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
    color:#333;
}

.form-container h2{
    text-align:center;
    margin-bottom:20px;
    color:#145a32;
}

.input-box{
    width:100%;
    padding:14px;
    margin-top:10px;
    border:1px solid #ccc;
    border-radius:10px;
}

.submit-btn{
    width:100%;
    padding:15px;
    margin-top:20px;
    background:#32cd32;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.submit-btn:hover{
    background:#145a32;
}

.button-group{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.button-group .submit-btn,
.button-group .home-btn{
    flex:1;
    width:auto;
    padding:15px;
    border-radius:10px;
    cursor:pointer;
    text-align:center;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.button-group .submit-btn{
    background:#32cd32;
    color:white;
    border:none;
}

.button-group .submit-btn:hover{
    background:#145a32;
}

.button-group .home-btn{
    background:lightyellow;
    color:#145a32;
    border:1px solid #ccc;
}

.button-group .home-btn:hover{
    background:#fffacd;
    border-color:#145a32;
}

.home-btn{
    width:100%;
    padding:14px;
    margin-top:10px;
    border:1px solid #ccc;
    border-radius:10px;
    background:white;
    color:#145a32;
    text-decoration:none;
    display:block;
    text-align:center;
    font-weight:bold;
    transition:0.2s ease;
}

.home-btn:hover{
    background:#f0f0f0;
    border-color:#145a32;
}

.sidebar{
    width:250px;
    height:100vh;
    background:#145a32;
    position:fixed;
    left:0;
    top:0;
}

.sidebar h2{
    color:white;
    text-align:center;
    padding:20px;
}

.sidebar a{
    display:block;
    color:white;
    padding:15px;
    text-decoration:none;
}

.sidebar a:hover{
    background:#32cd32;
}

.sidebar-logout{
    margin-top:20px;
    border-top:1px solid rgba(255,255,255,0.15);
}

.platform-badge{
    display:inline-block;
    margin-top:10px;
    padding:8px 12px;
    background:rgba(50,205,50,0.12);
    color:#145a32;
    border-radius:12px;
    font-size:0.9rem;
    font-weight:700;
}

.content{
    margin-left:260px;
    padding:30px;
}

.card{
    background:white;
    border-radius:20px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 5px 10px rgba(0,0,0,0.1);
    transition:0.3s;
    animation: fadeInUp 0.8s ease-out both;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.result-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
    margin-top:20px;
}

.result-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:180px;
}

.result-card h3{
    margin-bottom:12px;
    color:#145a32;
}

.result-card p{
    color:#3a593a;
    margin-bottom:18px;
}

.result-card .main-btn{
    align-self:flex-start;
}

.no-result-card{
    max-width:600px;
    margin:20px auto 0;
    text-align:center;
}

.progress{
    background:#e0e0e0;
    border-radius:10px;
    height:20px;
    margin-top:10px;
}

.progress-bar{
    background:#32cd32;
    height:100%;
    border-radius:10px;
    text-align:center;
    color:white;
    font-weight:bold;
}

.candidate-card-inline{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:15px;
}

.candidate-thumb{
    width:120px;
    height:120px;
    border-radius:20px;
    overflow:hidden;
    flex-shrink:0;
    background:#f0f8f0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.candidate-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.candidate-card{
    padding:20px;
}

.image-placeholder{
    color:#145a32;
    font-weight:700;
    text-align:center;
    padding:10px;
}

.page-header{
    margin-bottom:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    padding:18px 22px;
    background:rgba(255,255,255,0.85);
    border-radius:22px;
    border:1px solid rgba(20,90,50,0.12);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.page-header h1{
    margin:0;
    color:#145a32;
    font-size:32px;
}

.page-subtitle{
    margin-top:8px;
    color:#2d6b32;
    font-size:1rem;
    line-height:1.5;
}

.filter-form{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    background:rgba(247,255,247,0.98);
    border-radius:18px;
    border:1px solid rgba(20,90,50,0.12);
}

.filter-form label{
    font-weight:700;
    color:#145a32;
    white-space:nowrap;
}

.filter-form select,
.filter-form button{
    border-radius:14px;
    border:1px solid #cfd8ce;
    padding:12px 16px;
    font-size:1rem;
}

.filter-form select{
    min-width:220px;
    background:#ffffff;
    color:#145a32;
    outline:none;
}

.filter-form button{
    background:#32cd32;
    color:#ffffff;
    border:none;
    cursor:pointer;
    transition:transform 0.2s ease, background 0.2s ease;
}

.filter-form button:hover{
    background:#145a32;
    transform:translateY(-1px);
}

@media (max-width: 780px) {
    .filter-form{
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .filter-form label,
    .filter-form select,
    .filter-form button{
        width:100%;
    }
}

.logout-btn{
    display:inline-block;
    background:#ffffff;
    color:#145a32;
    border:2px solid #32cd32;
    padding:12px 24px;
    border-radius:18px;
    text-decoration:none;
    font-weight:700;
    transition:all 0.3s ease;
}

.logout-btn:hover{
    background:#32cd32;
    color:white;
    transform:translateY(-2px);
}

.no-results{
    color:#145a32;
    font-size:1rem;
    line-height:1.6;
}

.receipt-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
}

.receipt-header h1 {
    margin-bottom: 8px;
    color: #145a32;
    font-size: 2rem;
}

.receipt-subtitle {
    color: #2d6b32;
    margin-bottom: 20px;
    display: block;
}

.receipt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    background: #f4fff4;
    border-radius: 16px;
    border: 1px solid rgba(50,205,50,0.14);
    color: #145a32;
    font-size: 0.98rem;
}

.receipt-meta strong {
    color: #145a32;
}

.receipt-list {
    list-style: decimal inside;
    margin: 0 0 24px;
    padding-left: 0;
    color: #1f4d28;
}

.receipt-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #f7fff7;
    border: 1px solid rgba(50,205,50,0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.receipt-item strong {
    font-weight: 700;
}

.receipt-download {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 980px) {
    .sidebar {
        position:relative;
        width:100%;
        height:auto;
        padding:20px 16px 10px;
    }

    .sidebar h2 {
        text-align:left;
        padding:0 0 10px;
        margin-bottom:10px;
    }

    .sidebar a,
    .sidebar-logout {
        display:block;
        width:100%;
        margin:0 0 10px 0;
        border-radius:14px;
    }

    .sidebar a {
        padding:14px 18px;
    }

    .content {
        margin-left:0;
        padding:18px 16px 24px;
    }

    .main-container {
        align-items:flex-start;
        padding:20px 12px;
        min-height:auto;
    }

    .glass-box {
        width:100%;
        max-width:520px;
        padding:30px;
    }

    .buttons {
        flex-direction:column;
        align-items:stretch;
    }

    .buttons a,
    .main-btn {
        width:100%;
        box-sizing:border-box;
    }

    .main-btn {
        padding:14px 18px;
    }

    .page-header {
        align-items:flex-start;
        gap:12px;
    }

    .page-header h1 {
        font-size:26px;
    }

    .page-header p {
        font-size:0.98rem;
        line-height:1.6;
    }

    .candidate-grid {
        display:grid;
        grid-template-columns:1fr;
        gap:18px;
    }

    .candidate-card-inline {
        flex-direction:column;
        align-items:flex-start;
    }

    .candidate-thumb {
        width:100%;
        height:auto;
        min-height:180px;
        border-radius:20px;
    }

    .candidate-thumb img {
        height:auto;
        object-fit:cover;
    }

    .form-container,
    .card {
        width:auto;
        padding:22px;
    }

    .input-box,
    .logout-btn,
    .submit-btn,
    .main-btn {
        width:100%;
    }

    .position-title {
        font-size:1.1rem;
        margin-bottom:10px;
    }
}

@media (max-width: 640px) {
    .glass-box {
        padding:24px;
    }

    .logo-icon {
        font-size:48px;
    }

    .glass-box h1 {
        font-size:32px;
    }

    .page-header h1 {
        font-size:22px;
    }

    .form-container,
    .card {
        padding:18px;
    }

    .sidebar {
        padding:16px 12px;
    }

    .sidebar h2 {
        font-size:1.1rem;
    }

    .sidebar a,
    .sidebar-logout {
        padding:12px 14px;
    }

    .result-grid {
        grid-template-columns:1fr;
    }

    .result-card {
        min-height:auto;
    }

    .receipt-card {
        padding:22px;
    }
}

