@import url(https://fonts.googleapis.com/css2?family=spartan:wght@100;200;300;400;500;600;700;800;900&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'spartan', sans-serif;
}

@media (max-width: 768px) {
    #navbar { position: fixed; top: 0; right: -100%; width: min(300px, 100vw); height: 100vh; display: none !important; flex-direction: column; align-items: stretch; gap: 0; padding: 80px 24px 24px; background-color: rgb(109, 214, 4); transition: right 0.25s ease; z-index: 999; }
    #navbar.active { right: 0; display: flex !important; }
    #navbar li { width: 100%; padding: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
    #navbar li a { display: block; width: 100%; padding: 16px 4px; color: rgb(250, 245, 245); font-size: 17px; }
    #close { display: flex !important; position: absolute; top: 20px; right: 20px; }
    #mobile { display: flex !important; align-items: center; gap: 15px; }
}

body {
    width: 100%;
    background-color: rgb(46, 40, 40);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img[src=""], img:not([src]) {
    display: none !important;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background-color: rgb(109, 214, 4);
    box-shadow: 0 5px 15px rgba(109, 214, 4, 0.445);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header a {
    text-decoration: none;
    color: rgb(250, 245, 245);
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo {
    width: 40px;
    height: 40px;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

#navbar li {
    padding: 0 20px;
}

#navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: rgb(250, 245, 245);
    transition: 0.3s ease;
}

#navbar li a.active {
    color: rgb(5, 95, 5);
    font-weight: 700;
}

#navbar li a:hover {
    color: rgb(5, 95, 5);
}

#mobile {
    display: none;
}

/* History Container */
.history-container {
    flex: 1;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(109, 214, 4, 0.05), rgba(46, 40, 40, 1));
}

.history-header {
    text-align: center;
    margin-bottom: 50px;
}

.history-header h1 {
    font-size: 36px;
    color: rgb(109, 214, 4);
    margin-bottom: 10px;
}

.history-header p {
    font-size: 16px;
    color: rgb(150, 145, 145);
}

/* History Content */
.history-content {
    background: rgb(60, 55, 55);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Filters Section */
.filters-section {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: rgb(109, 214, 4);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: rgb(50, 45, 45);
    border: 2px solid rgb(100, 95, 95);
    border-radius: 5px;
    color: rgb(200, 195, 195);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: rgb(109, 214, 4);
    box-shadow: 0 0 10px rgba(109, 214, 4, 0.3);
}

.search-box input::placeholder {
    color: rgb(120, 115, 115);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    background-color: rgb(50, 45, 45);
    border: 2px solid rgb(100, 95, 95);
    border-radius: 5px;
    color: rgb(200, 195, 195);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: rgb(109, 214, 4);
    outline: none;
}

.filter-select option {
    background-color: rgb(50, 45, 45);
    color: rgb(200, 195, 195);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgb(50, 45, 45);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid rgb(109, 214, 4);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(109, 214, 4, 0.2);
}

.stat-card i {
    font-size: 32px;
    color: rgb(109, 214, 4);
}

.stat-card h4 {
    color: rgb(150, 145, 145);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-card p {
    color: rgb(200, 195, 195);
    font-size: 20px;
    font-weight: 700;
}

/* Transactions Table */
.transactions-wrapper {
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgb(100, 95, 95);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgb(50, 45, 45);
}

.transactions-table thead {
    background-color: rgb(40, 35, 35);
    border-bottom: 2px solid rgb(109, 214, 4);
}

.transactions-table th {
    padding: 16px;
    text-align: left;
    color: rgb(109, 214, 4);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgb(100, 95, 95);
    color: rgb(200, 195, 195);
    font-size: 14px;
}

.transactions-table tbody tr:hover {
    background-color: rgba(109, 214, 4, 0.05);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: rgb(76, 175, 80);
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: rgb(255, 193, 7);
}

.status-badge.failed {
    background-color: rgba(244, 67, 54, 0.2);
    color: rgb(244, 67, 54);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.completed .status-dot {
    background-color: rgb(76, 175, 80);
}

.status-badge.pending .status-dot {
    background-color: rgb(255, 193, 7);
    animation: pulse 2s infinite;
}

.status-badge.failed .status-dot {
    background-color: rgb(244, 67, 54);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    margin: 0 3px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-btn {
    background-color: rgba(109, 214, 4, 0.2);
    color: rgb(109, 214, 4);
}

.view-btn:hover {
    background-color: rgb(109, 214, 4);
    color: white;
}

/* Empty State */
.no-data-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state i {
    font-size: 80px;
    color: rgb(109, 214, 4);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    color: rgb(200, 195, 195);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 15px;
    color: rgb(150, 145, 145);
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: rgb(109, 214, 4);
    color: white;
}

.btn-primary:hover {
    background-color: rgb(90, 180, 0);
    box-shadow: 0 5px 20px rgba(109, 214, 4, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgb(100, 95, 95);
    color: rgb(200, 195, 195);
}

.btn-secondary:hover {
    background-color: rgb(120, 115, 115);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    background-color: rgb(50, 45, 45);
    border: 1px solid rgb(100, 95, 95);
    color: rgb(200, 195, 195);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: rgb(109, 214, 4);
    border-color: rgb(109, 214, 4);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    background-color: rgb(50, 45, 45);
    border: 1px solid rgb(100, 95, 95);
    color: rgb(200, 195, 195);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
}

.page-number:hover,
.page-number.active {
    background-color: rgb(109, 214, 4);
    border-color: rgb(109, 214, 4);
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: rgb(60, 55, 55);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgb(109, 214, 4);
}

.modal-header h2 {
    color: rgb(109, 214, 4);
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: rgb(109, 214, 4);
    font-size: 32px;
    cursor: pointer;
    transition: 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: rgb(200, 195, 195);
}

.modal-body {
    padding: 25px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    color: rgb(150, 145, 145);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    color: rgb(200, 195, 195);
    font-size: 14px;
    word-break: break-word;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 25px;
    border-top: 1px solid rgb(100, 95, 95);
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Footer Styles */
footer {
    background-color: rgb(30, 25, 25);
    color: rgb(150, 145, 145);
    padding: 40px 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

footer .col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer .col h4 {
    color: rgb(200, 195, 195);
    font-size: 16px;
    margin-bottom: 10px;
}

footer .col p {
    font-size: 13px;
    line-height: 1.6;
}

footer .col a {
    text-decoration: none;
    color: rgb(150, 145, 145);
    font-size: 14px;
    transition: 0.3s ease;
}

footer .col a:hover {
    color: rgb(109, 214, 4);
}

footer .col img {
    width: 50px;
    height: auto;
}

footer .follow .icon {
    display: flex;
    gap: 10px;
}

footer .follow .icon i {
    color: rgb(100, 95, 95);
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

footer .follow .icon i:hover {
    color: rgb(109, 214, 4);
    transform: scale(1.2);
}

footer .row {
    display: flex;
    gap: 10px;
}

footer .row img {
    width: 100px;
    height: 50px;
}

.cpr {
    text-align: center;
    padding: 20px;
    background-color: rgb(20, 15, 15);
    color: rgb(150, 145, 145);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 40px;
    }

    #navbar {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgb(109, 214, 4);
        flex-direction: column;
        padding: 20px;
        z-index: 99;
    }

    #navbar.active {
        display: flex;
    }

    #navbar li {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #close {
        display: flex !important;
        position: absolute;
        right: 20px;
        top: 20px;
        color: rgb(250, 245, 245);
        font-size: 24px;
    }

    #mobile {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    #mobile .a {
        text-decoration: none;
        color: rgb(250, 245, 245);
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    #bar {
        font-size: 24px;
        color: rgb(250, 245, 245);
        cursor: pointer;
    }

    .history-container {
        padding: 40px 20px;
    }

    .history-content {
        padding: 25px;
    }

    .filters-section {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .history-header h1 {
        font-size: 24px;
    }

    .history-content {
        padding: 15px;
    }

    .filters-section {
        gap: 10px;
    }

    .search-box input {
        font-size: 12px;
        padding: 10px 10px 10px 35px;
    }

    .filter-select {
        padding: 8px 10px;
        font-size: 12px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-close {
        font-size: 24px;
    }
}
