@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 24px;
}

h1.text-anime-style-2yu {
    color: black !important;
}

/* Navigation Links */
.nav-links {
    margin-bottom: 2rem;
    text-align: center;
}

.nav-links a {
    color: #fd0000;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Glassmorphism Classes */
.glass {
    background: rgb(247 247 247 / 70%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.upload-form {
    max-width: 637px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;

    padding-bottom: 30px !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 400 !important;
    color: #000000;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgb(44 40 40 / 71%);

    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    filter: brightness(1.2);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    filter: brightness(1.2);
}

/* Gallery Grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 72px !important;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem 1rem 1rem 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}

.close-modal:hover {
    background: var(--danger);
}

.modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
}

.modal-details {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Admin Login & Table */
.login-form {
    max-width: 400px;
    margin: auto;
}

.admin-dashboard {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: #404143;
    font-weight: 500;
}

.admin-table img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

a.bacck {
    color: black;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #000;
}

.status-approved {
    background: rgb(5 154 38);
    color: #ffffff;
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--success);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    right: 30px;
    bottom: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#toast.error {
    background-color: var(--danger);
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.dfom {
    padding-top: 30px;
    padding-bottom: 84px !important;
}

button.btnbtn-primary {
    background: #dc6ca1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    text-transform: capitalize;
    color: var(--white-color);
    border: none;
    padding: 17px 54px 17px 30px;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    z-index: 0;
}



.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.custom-modal-content {
    background: #fff;
    max-width: 700px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #000;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

.modal-image {
    width: 100%;
    display: block;
}

.modal-details {
    padding: 20px;
}



























.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.custom-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding-bottom: 30px !important;
}

.custom-modal-body {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.custom-modal-left {
    width: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-right {
    width: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    box-sizing: border-box;
}

.modal-image {
    width: 100%;
    height: 100%;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

.modal-details {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.modal-title {

    font-weight: 700;
    margin-bottom: 20px !important;
    color: #222;
}

.modal-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-modal-content {
        max-width: 95%;
    }

    .custom-modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .custom-modal-left,
    .custom-modal-right {
        width: 100%;
    }

    .custom-modal-left {
        max-height: 320px;
    }

    .modal-image {
        height: 320px;
        object-fit: cover;
    }

    .custom-modal-right {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .modal-desc {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Success Modal Specifics */
#successModal .custom-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#successModal .btnbtn-primary:hover {
    transform: scale(1.05);
    background: #c55d8f;
}




/* =========================
   ADMIN PAGE RESPONSIVE
========================= */

/* Header layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.nav-links .bacck {
    background: #f3f4f6;
    color: #111827;
}

.nav-links .logout-btn {
    background: #ff4d4d;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.25);
    transition: 0.3s ease;
}

.nav-links .logout-btn:hover {
    background: #e60000;
    transform: translateY(-1px);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Login form */
.login-form {
    max-width: 450px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
}

/* Table wrapper */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table */
.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.admin-table td img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons form {
    margin: 0;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .admin-table {
        min-width: 800px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    header h1 {
        font-size: 22px;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        flex: 1 1 auto;
        text-align: center;
    }

    .login-form {
        margin: 20px auto;
        padding: 18px;
    }

    .admin-dashboard h2 {
        font-size: 20px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
        font-size: 14px;
    }

    .admin-table td img {
        width: 55px;
        height: 55px;
    }

    .btn,
    .action-buttons .btn {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    header h1 {
        font-size: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        width: 100%;
    }

    .login-form {
        padding: 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .admin-dashboard h2 {
        font-size: 18px;
    }

    .admin-table th,
    .admin-table td {
        font-size: 13px;
        padding: 8px;
    }

    .admin-table td img {
        width: 50px;
        height: 50px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
}