/* DonyayeGame Plugin Styles */

/* Reset and Base Styles */
.dga-login-form,
.dga-register-form-standalone {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
}

.dga-login-form h3,
.dga-register-form-standalone h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

/* Dashboard Styles */
.dga-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
}

.dga-dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.dga-sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: absolute;
    height: 100vh;
    overflow-y: auto;
}

.dga-user-info {
    padding: 20px;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.avatar-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.user-details p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
}

/* Navigation Styles */
.dga-nav {
    padding: 20px 0;
}

.dga-nav ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.dga-nav .nav-item {
    margin: 0;
}

.dga-nav .nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dga-nav .nav-item a:hover,
.dga-nav .nav-item.active a {
    background: #34495e;
    color: #3498db;
    border-left-color: #3498db;
}

.dga-nav .nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.dga-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
    margin-top: auto;
}

.dga-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dga-logout-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.dga-logout-btn i {
    margin-right: 8px;
}

/* Main Content Styles */
.dga-main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.dga-content-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dga-content-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.dga-content-body {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.dga-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.dga-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.dga-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.dga-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
}

.dga-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.dga-btn-small {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 80px;
}

.dga-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Steps */
.dga-step {
    display: none;
}

.dga-step.active {
    display: block;
}

.dga-step h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.dga-step p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* OTP Timer */
.dga-timer {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.dga-resend-btn {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.dga-resend-btn:hover {
    color: #2980b9;
}

/* Messages */
.dga-messages {
    margin-top: 20px;
}

.dga-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

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

.dga-close-message {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}

.dga-close-message:hover {
    opacity: 1;
}

/* Profile Section */
.dga-profile-section {
    max-width: 600px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Wallet Section */
.dga-wallet-section {
    max-width: 600px;
}

.wallet-balance {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.wallet-balance h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.balance-amount .amount {
    font-size: 36px;
    font-weight: bold;
    color: #28a745;
}

.balance-amount .currency {
    font-size: 18px;
    color: #6c757d;
}

.charge-wallet h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Transactions Section */
.dga-transactions-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.dga-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dga-table th,
.dga-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.dga-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.transaction-type.credit {
    color: #28a745;
    font-weight: 600;
}

.transaction-type.debit {
    color: #dc3545;
    font-weight: 600;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.failed {
    background: #f8d7da;
    color: #721c24;
}

.status.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Reservations Section */
.dga-reservations-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

/* User Profile */
.dga-user-profile {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dga-user-profile h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.profile-info {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.info-row span {
    color: #333;
    text-align: right;
}

.profile-actions {
    text-align: center;
}

.profile-actions .dga-btn {
    margin: 0 10px;
}

/* Logged In State */
.dga-logged-in {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.dga-logged-in p {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.logged-in-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.dga-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dga-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.dga-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1000;
}

.dga-close:hover {
    color: #333;
}

#dga-modal-body {
    padding: 30px;
}

/* Loading States */
.dga-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dga-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .dga-main-content {
        margin-left: 0;
    }
    
    .dga-dashboard-container {
        flex-direction: column;
    }
    
    .dga-login-form,
    .dga-register-form-standalone,
    .dga-user-profile {
        margin: 10px;
        padding: 15px;
    }
    
    .dga-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #dga-modal-body {
        padding: 20px;
    }
    
    .dga-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-row span {
        text-align: left;
    }
    
    .logged-in-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dga-login-form h3,
    .dga-register-form-standalone h3,
    .dga-user-profile h3 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dga-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .dga-content-body {
        padding: 20px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Focus States for Accessibility */
.dga-btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .dga-btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .dga-btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .form-group input {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .dga-login-form,
    .dga-register-form-standalone,
    .dga-user-profile,
    .dga-sidebar {
        display: none;
    }
    
    .dga-main-content {
        margin-left: 0;
    }
} 