html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.custom-navbar {
    background: linear-gradient(90deg, #212529, #343a40);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-size: 1.25rem;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover {
    color: #fff !important;
}

.footer {
    background: linear-gradient(90deg, #212529, #343a40);
    color: #fff;
}

.footer small {
    font-size: 0.9rem;
}


.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    height: auto;
}

.card-header {
    background: #212529;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    text-align: center;
}

.card-body h5 {
    color: #212529;
}

.btn-custom {
    background: #28a745;
    vertical-align: middle;
    color: #fff;
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom:hover {
    background: #218838;
    transform: scale(1.05);
    color: #fff;
}

.input-group-text {
    border-left: none;
}

.input-group .form-control {
    border-right: none;
}

.alert i {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .card .row>div {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .card .row>div:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 1rem;
    }

    .card {
        margin: 0.5rem;
    }

    .btn-custom {
        width: 100%;
    }

    .footer small {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .input-group .form-control {
        font-size: 0.9rem;
    }

    .input-group-text i {
        font-size: 1rem;
    }

    .alert {
        font-size: 0.85rem;
    }
}