/* From Uiverse.io by mi-series - Unified Admin Style System */

/* Base Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5F5F5;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container - Main Page Layout */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* Form Area - Card Container */
.form_area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #EDDCD9;
    height: auto;
    width: auto;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
}

/* Title Styles */
.title {
    color: #264143;
    font-weight: 900;
    font-size: 1.5em;
    margin-top: 20px;
}

.sub_title {
    font-weight: 600;
    margin: 5px 0;
}

/* Form Group */
.form_group {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 10px;
}

/* Form Input Styles */
.form_style {
    outline: none;
    border: 2px solid #264143;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    width: 290px;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 15px;
}

.form_style:focus, .btn:focus {
    transform: translateY(4px);
    box-shadow: 1px 2px 0px 0px #E99F4C;
}

/* Button Styles */
.btn {
    padding: 15px;
    margin: 25px 0px;
    width: 290px;
    font-size: 15px;
    background: #DE5499;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 3px 3px 0px 0px #E99F4C;
}

.btn:hover {
    opacity: .9;
}

/* Link Styles */
.link {
    font-weight: 800;
    color: #264143;
    padding: 5px;
}

/* Admin Card System - Dashboard Cards */
.dashboard-card {
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 6px 12px 0px 2px #E99F4C;
    border-color: #DE5499;
}

/* Card Header */
.card-header {
    color: #264143;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    color: #DE5499;
    font-size: 16px;
}

/* Card Content */
.card-content {
    color: #264143;
    font-size: 16px;
    line-height: 1.6;
}

.card-content p {
    margin-bottom: 10px;
}

.card-content strong {
    font-weight: 700;
}

/* Table Cards - For Admin Tables */
.table-card {
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 25px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: tableCardSlide 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(222, 84, 153, 0.05) 0%, rgba(233, 159, 76, 0.05) 100%);
    pointer-events: none;
}

.table-card .card-header {
    color: #264143;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes tableCardSlide {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Search Cards */
.search-card {
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 25px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: tableCardSlide 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(222, 84, 153, 0.05) 0%, rgba(233, 159, 76, 0.05) 100%);
    pointer-events: none;
}

.search-card .card-header {
    color: #264143;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Cards - For Settings Pages */
.settings-card {
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 30px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
}

.settings-card .card-header {
    color: #264143;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #264143;
    padding-bottom: 15px;
}

.settings-card .card-header i {
    color: #DE5499;
    font-size: 18px;
}

/* Chart Cards - Unified styling for all admin cards based on Uiverse.io form_area */
.chart-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #EDDCD9;
    height: auto;
    width: auto;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: visible;
}

.chart-card .title {
    color: #264143;
    font-weight: 900;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.chart-card .sub_title {
    font-weight: 600;
    margin: 5px 0 20px 0;
    color: #264143;
    opacity: 0.8;
    text-align: center;
}

.chart-card .card-header {
    color: #264143;
    font-weight: 900;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.chart-card .card-header i {
    color: #DE5499;
    font-size: 1.2em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) rotateY(15deg);
    animation: statCardFloat 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 5px 8px 0px 2px #E99F4C;
    border-color: #DE5499;
}

@keyframes statCardFloat {
    from {
        opacity: 0;
        transform: translateY(20px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0deg);
    }
}

.stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #DE5499;
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #264143;
    font-weight: 500;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(38, 65, 67, 0.1);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: #264143;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    color: #264143;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: #264143;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.8;
}

/* Button Variants */
.btn-primary {
    background: #DE5499;
    color: white;
    border: 2px solid #264143;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 2px 3px 0px 0px #E99F4C;
    text-decoration: none;
}

.btn-primary:hover {
    background: #c9458a;
    transform: translateY(1px);
    box-shadow: 1px 2px 0px 0px #E99F4C;
}

.btn-secondary {
    background: #E99F4C;
    color: white;
    border: 2px solid #264143;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 2px 3px 0px 0px #d18a42;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #d18a42;
    transform: translateY(1px);
    box-shadow: 1px 2px 0px 0px #d18a42;
}

.btn-outline {
    background: transparent;
    color: #DE5499;
    border: 2px solid #DE5499;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #DE5499;
    color: white;
    transform: translateY(-1px);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    color: #264143;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #264143;
    border-radius: 8px;
    background-color: white;
    color: #264143;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 2px 3px 0px 0px #E99F4C;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #DE5499;
    transform: translateY(2px);
    box-shadow: 1px 2px 0px 0px #E99F4C;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 2px solid;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #0c5460;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border: none;
    background: transparent;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    border: none;
}

.data-table thead {
    background-color: #264143;
    color: white;
}

.data-table thead th {
    padding: 15px 10px;
    font-weight: 700;
    text-align: left;
    border: none;
    color: white;
    font-size: 14px;
    vertical-align: middle;
}

.data-table thead th:first-child {
    border-top-left-radius: 15px;
}

.data-table thead th:last-child {
    border-top-right-radius: 15px;
}

.data-table tbody tr {
    background-color: white;
    border-bottom: 2px solid #f1f1f1;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.data-table tbody td {
    padding: 15px 10px;
    border: none;
    font-size: 14px;
    vertical-align: middle;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 40px 20px;
}

.no-transactions-simple {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.no-transactions-simple i {
    font-size: 56px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-transactions-simple p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #264143;
}

.no-transactions-simple small {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .form_area {
        margin: 10px;
        padding: 20px;
        min-width: 280px;
    }

    .form_style {
        max-width: 100%;
    }

    .btn {
        max-width: 100%;
    }

    .title {
        font-size: 1.3em;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .table-card,
    .search-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .settings-card {
        padding: 20px;
        margin: 10px;
    }

    .page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    /* Smaller stat styles for mobile */
    .stat-number {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 3px;
    }

    .stat-label {
        font-size: 11px;
        font-weight: 400;
    }
}

@media (max-width: 480px) {
    .form_area {
        margin: 5px;
        padding: 15px;
        min-width: 260px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .table-card,
    .search-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .settings-card {
        padding: 15px;
        margin: 5px;
    }

    .page-title {
        font-size: 22px;
    }

    .welcome-title {
        font-size: 24px;
    }

    /* Even smaller stat styles for extra small mobile */
    .stat-number {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .stat-label {
        font-size: 10px;
        font-weight: 400;
    }
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Public Profile Specific Styles - Override all other styles */
.public-profile-container .profile-stats .stat-number {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    line-height: 1.1 !important;
}

.public-profile-container .profile-stats .stat-label {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
}

/* Mobile Specific Overrides for Public Profile */
@media (max-width: 768px) {
    .public-profile-container .profile-stats .stat-number {
        font-size: 12px !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }

    .public-profile-container .profile-stats .stat-label {
        font-size: 10px !important;
        font-weight: 400 !important;
    }
}

@media (max-width: 480px) {
    .public-profile-container .profile-stats .stat-number {
        font-size: 11px !important;
        font-weight: 500 !important;
        margin-bottom: 1px !important;
    }

    .public-profile-container .profile-stats .stat-label {
        font-size: 9px !important;
        font-weight: 400 !important;
    }
}