/* 
 * Main Stylesheet for UPI Gateway Admin
 * Blue and White Theme with Modern Design
 */

:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    --accent: #03A9F4;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #BDBDBD;
    --error: #F44336;
    --success: #4CAF50;
    --warning: #FFC107;
    --white: #FFFFFF;
    --bg-light: #F5F5F5;
    --primary-color: #4e73df;
    --secondary-color: #5a5c69;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --border-color: #e3e6f0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.login-form .error {
    color: var(--error);
    font-size: 14px;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Admin Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--white);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 20px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--primary-light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.sidebar-menu i {
    margin-right: 10px;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--divider);
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-dark);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.user-btn span {
    margin-right: 8px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
}

/* Cards and Widgets */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--divider);
}

.table th {
    background-color: var(--primary-light);
    font-weight: 500;
    color: var(--primary-dark);
}

.table tbody tr:hover {
    background-color: rgba(187, 222, 251, 0.3);
}

.table .status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.table .status-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.table .status-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.table .status-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

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

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.pagination a {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.pagination span.current {
    background-color: var(--primary);
    color: var(--white);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 2px dashed var(--divider);
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: border-color 0.3s;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.file-upload .file-hint {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 20px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(3, 169, 244, 0.2);
    color: var(--accent);
}

/* UPI ID Management */
.upi-list {
    margin-top: 20px;
}

.upi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--white);
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.upi-active {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
}

.upi-info {
    display: flex;
    flex-direction: column;
}

.upi-id {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
}

.upi-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.upi-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .login-form {
        max-width: 320px;
    }
    
    .card {
        padding: 15px;
    }
    
    .table th, .table td {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header .user-menu {
        margin-top: 10px;
    }
}

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

body {
    font-family: var(--font-family);
    background-color: #f8f9fc;
    color: #5a5c69;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Styles */
.card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 0.15rem 1.75rem 0 var(--shadow-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.card-header h1, .card-header h2 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fc;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.35rem;
    border-left: 0.25rem solid;
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.15);
    border-left-color: var(--success-color);
    color: #0e6c5a;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.15);
    border-left-color: var(--danger-color);
    color: #a52c23;
}

.alert-warning {
    background-color: rgba(246, 194, 62, 0.15);
    border-left-color: var(--warning-color);
    color: #8f6f19;
}

.alert-info {
    background-color: rgba(54, 185, 204, 0.15);
    border-left-color: var(--info-color);
    color: #1f6b7a;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #6e707e;
    background-color: var(--white-color);
    background-clip: padding-box;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #bac8f3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Button Styles */
.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

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

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

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

.btn-secondary:hover {
    background-color: #4e4f57;
    border-color: #484950;
}

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

.btn-success:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

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

.btn-danger:hover {
    background-color: #e02d1b;
    border-color: #d52a1a;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Icon Styles */
.fas {
    margin-right: 0.5rem;
}

/* Table Styles */
.details-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.details-table th, .details-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.details-table th {
    width: 30%;
    font-weight: 600;
    text-align: left;
}

.details-table tr:first-child th, .details-table tr:first-child td {
    border-top: none;
}

/* Payment Page Specific Styles */
.invoice-input {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.payment-info {
    margin-top: 2rem;
}

.payment-info h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.payment-options {
    margin-top: 2rem;
    background-color: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.qr-code-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code {
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: 0.35rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 var(--shadow-color);
}

.qr-code img {
    max-width: 200px;
    height: auto;
}

.qr-instructions {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.upi-details {
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: 0.35rem;
    margin-bottom: 1.5rem;
}

.upi-details p {
    margin-bottom: 0.5rem;
}

.upi-pay-button {
    margin-top: 1rem;
}

.payment-confirmation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Confirmation Page Specific Styles */
.confirmation-details {
    text-align: center;
}

.status-container {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.status-completed {
    background-color: rgba(28, 200, 138, 0.15);
    color: #0e6c5a;
}

.status-pending {
    background-color: rgba(246, 194, 62, 0.15);
    color: #8f6f19;
}

.status-failed {
    background-color: rgba(231, 74, 59, 0.15);
    color: #a52c23;
}

.note-box {
    background-color: #f8f9fc;
    border-left: 0.25rem solid var(--info-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.35rem;
}

.note-box p {
    margin-bottom: 0.5rem;
}

.note-box p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        margin-bottom: 0.5rem;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }
    
    .details-table th {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .qr-code img {
        max-width: 150px;
    }
    
    .status-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .details-table th, .details-table td {
        padding: 0.5rem;
    }
    
    .details-table th {
        width: 50%;
    }
} 