/* Main Styles for EasyPay */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
}

.card-img-top {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Forms */
.form-control {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Crypto Rate Cards */
.crypto-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.crypto-card img {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.crypto-card .crypto-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.crypto-card .crypto-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.crypto-card .crypto-change {
    font-size: 0.9rem;
}

.crypto-card .crypto-change.positive {
    color: #28a745;
}

.crypto-card .crypto-change.negative {
    color: #dc3545;
}

/* Dashboard */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .stat-change {
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: 3rem;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Table Styles - Removed duplicate definitions to use the ones from modern-dashboard.css */
/* This ensures consistent styling across the entire application */

/* Alternating row colors */
.modern-table tbody tr:nth-child(even) {
    background-color: rgba(0, 123, 255, 0.02);
}

.modern-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.08);
}

.modern-table th:first-child,
.modern-table td:first-child,
.table th:first-child,
.table td:first-child {
    position: relative;
    border-right: 1px solid rgba(0, 123, 255, 0.1); /* Even more faint - 10% opacity */
    background-color: #f9fafc; /* Lighter background */
    font-weight: bold;
    text-align: center;
    width: 60px;
    min-width: 60px;
    box-shadow: none; /* Remove the shadow */
}

/* No additional vertical line - using only the border */
.modern-table th:first-child:after,
.modern-table td:first-child:after,
.table th:first-child:after,
.table td:first-child:after {
    display: none; /* Remove the additional line */
}

/* Add bottom border to each row */
.modern-table tr,
.table tr {
    border-bottom: 1px solid rgba(233, 236, 239, 0.7);
}

.modern-table th:first-child,
.table th:first-child {
    background-color: #f5f8ff; /* Even lighter background */
    color: rgba(0, 123, 255, 0.7); /* More faint text color */
    border-bottom: 1px solid rgba(0, 123, 255, 0.2); /* More faint border */
    border-top-left-radius: 4px;
}

/* Add special styling for the numbering cells */
.modern-table td:first-child,
.table td:first-child {
    color: rgba(0, 123, 255, 0.6); /* More faint text color */
    font-weight: 500; /* Slightly lighter font weight */
    background-color: #f9fafc; /* Lighter background matching the header */
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge.cancelled {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Table Responsive Fixes */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Currency selector buttons */
.btn-group.flex-wrap .btn {
    margin-bottom: 0.25rem;
    margin-right: 0.125rem;
}

/* Extra small button */
.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Make sure currency buttons don't overflow */
@media (max-width: 768px) {
    .btn-group.flex-wrap {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Table layout properties - these will be merged with modern-dashboard.css styles */
.modern-table {
    table-layout: auto; /* For better content-based sizing */
}

/* Make numbering column very narrow */
.modern-table th:first-child,
.modern-table td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

/* Make action buttons column narrower */
.modern-table th:last-child,
.modern-table td:last-child {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

/* Make date column narrower */
.modern-table th:nth-last-child(2),
.modern-table td:nth-last-child(2) {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

/* Make cryptocurrency name column narrower */
.modern-table th:nth-child(2),
.modern-table td:nth-child(2) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    white-space: normal; /* Allow wrapping for crypto names */
}

/* Make price columns narrower */
.modern-table th:nth-child(3),
.modern-table td:nth-child(3),
.modern-table th:nth-child(5),
.modern-table td:nth-child(5),
.modern-table th:nth-child(6),
.modern-table td:nth-child(6) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* Make 24h change column narrower */
.modern-table th:nth-child(4),
.modern-table td:nth-child(4) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}
/* No duplicate styles */

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stat-card {
        min-width: 100%;
    }
}
