* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.card-login {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-success {
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card {
    transition: transform 0.2s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
}


body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.login-container {
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.illustration-side {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 600px;
}

.illustration-content {
    text-align: center;
    z-index: 2;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.profile-card .avatar {
    width: 50px;
    height: 50px;
    background: #42a5f5;
    border-radius: 50%;
    margin-right: 15px;
}

.profile-info {
    flex: 1;
}

.profile-lines {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.profile-lines.short {
    width: 60%;
}

.profile-progress {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar-mini {
    height: 8px;
    background: #4caf50;
    border-radius: 4px;
    flex: 1;
}

.heart-icon {
    color: #1565c0;
    font-size: 40px;
    position: absolute;
    top: 30px;
    right: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-element {
    position: absolute;
    animation: floatRandom 4s ease-in-out infinite;
}

.icon-chart {
    background: #1976d2;
    color: white;
    padding: 20px;
    border-radius: 15px;
    right: 10%;
    top: 35%;
}

.icon-message {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    right: 15%;
    top: 55%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-doc {
    background: #4caf50;
    padding: 15px;
    border-radius: 10px;
    right: 8%;
    bottom: 25%;
}

.icon-email {
    background: #ff9800;
    color: white;
    padding: 12px;
    border-radius: 50%;
    right: 25%;
    top: 20%;
}

.person-illustration {
    width: 280px;
    height: auto;
    margin: 20px 0;
}

.form-side {
    padding: 60px 60px;
}

.logo-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-utb {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
}

.logo-text h6 {
    margin: 0;
    font-size: 11px;
    color: #4caf50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-text h5 {
    margin: 0;
    font-size: 13px;
    color: #1565c0;
    font-weight: 700;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #757575;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-label {
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 5px;
}

.btn-login {
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .illustration-side {
        display: none;
    }

    .form-side {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 26px;
    }
}

.alert {
    border-radius: 8px;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Dashboard CSS */
:root {
    --primary-color: #28a745;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

/* Header Section */
.page-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title h4 {
    font-weight: 700;
    color: #212121;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #757575;
    font-size: 0.9rem;
}

/* Search Bar */
.search-wrapper {
    position: relative;
}

.search-wrapper input {
    border-radius: 25px;
    padding-left: 45px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
}

.btn-search {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-print {
    background: white;
    border: 2px solid #e0e0e0;
    color: #424242;
}

.btn-print:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.item-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover img {
    transform: scale(1.05);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-overlay-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.75rem;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #757575;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-info i {
    color: var(--primary-color);
}

.card-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
}

.btn-card {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.btn-detail {
    border: none;
    color: white;
}

.btn-edit {
    background: #ff9800;
    border: none;
    color: white;
}

.btn-edit:hover {
    background: #f57c00;
}

.btn-delete {
    background: transparent;
    border: 2px solid #f44336;
    color: #f44336;
    font-size: 0.8rem;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state p {
    color: #9e9e9e;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-banner h6 {
    color: #1565c0;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .page-header {
        padding: 20px 15px;
    }

    .action-buttons {
        justify-content: stretch;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }

    .item-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .search-wrapper input {
        font-size: 0.9rem;
    }

    .btn-search {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Modal Custom Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: #28a745;
    border: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.modal-title i {
    font-size: 1.5rem;
}

.modal-body {
    padding: 25px;
    background: #fafafa;
}

.form-label {
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: #4caf50;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.form-control::placeholder {
    color: #bdbdbd;
}

/* File Input Custom */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
}

.file-input-custom {
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    display: none;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
}

.file-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Modal Footer */
.modal-footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 20px 25px;
    gap: 10px;
}

.btn-modal {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f5f5f5;
    color: #424242;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

.btn-submit {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #1565c0;
}

.info-box i {
    margin-right: 8px;
}

/* Required indicator */
.required-label::after {
    content: " *";
    color: #f44336;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }

    .modal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 5px;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Loading state */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 10px;              
    flex-wrap: wrap;       
    margin: 20px 0;      
}

.filter-tabs .btn {
    border-radius: 20px;
    padding: 6px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 13spx;
    transition: all 0.3s;
}

