/* Main CSS File */
:root {
    --primary-color: #4361ee;
    --primary-light: #4cc9f0;
    --primary-dark: #3a0ca3;
    --secondary-color: #4cc9f0;
    --secondary-dark: #4895ef;
    --accent-color: #f72585;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
    --warning-color: #ffd166;
    --info-color: #118ab2;
    --dark-color: #073b4c;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --body-bg: #f0f2f5;
    --sidebar-bg: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --sidebar-text: #ffffff;
    --card-border: #e3e6f0;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --header-bg: #ffffff;
    --header-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 0.35rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--white-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: var(--white-color);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white-color);
    background-clip: border-box;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--card-border);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    padding: 0.5rem 0;
}

.sidebar-menu ul li a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidebar-menu ul li a:hover {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.sidebar-menu ul li a.active {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.sidebar-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: all 0.3s;
}

.main-content.expanded {
    width: 100%;
    margin-left: 0;
}

/* Header */
.header {
    padding: 1rem 2rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-sidebar:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-light);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.wallet-info {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-right: 1.5rem;
}

.wallet-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.wallet-balance {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Content */
.content {
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

/* Page Title */
.page-title {
    margin-bottom: 1.5rem;
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-top: -5px;
    margin-bottom: 15px;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10rem;
}

.status-pending {
    color: #856404;
    background-color: #fff3cd;
}

.status-processing {
    color: #0c5460;
    background-color: #d1ecf1;
}

.status-approved {
    color: #155724;
    background-color: #d4edda;
}

.status-rejected {
    color: #721c24;
    background-color: #f8d7da;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: var(--white-color);
    background-clip: padding-box;
    border: 1px solid var(--gray-light);
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--dark-color);
    background-color: var(--white-color);
    border-color: var(--primary-light);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--dark-color);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--gray-light);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--gray-light);
    background-color: var(--light-color);
    font-weight: 700;
    color: var(--primary-dark);
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--white-color);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    padding: 2rem;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 2rem;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light-color);
    border-top: 1px solid var(--card-border);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Dashboard Stats */
.stat-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-card-body {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Fix for row and column layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

/* Form row and columns */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-col {
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

.form-col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .main-content.active {
        width: calc(100% - 250px);
        margin-left: 250px;
    }
    
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .header {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .wallet-info {
        display: none;
    }
    
    .user-profile img {
        width: 30px;
        height: 30px;
    }
    
    .auth-card {
        max-width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--dark-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Login & Register Page Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
}

.auth-body {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #3a5ccc;
}

.auth-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-color) 10%, var(--info-color) 100%);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    z-index: 999;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--white-color);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: all 0.3s;
}

/* Header */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 20px;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    color: var(--gray-color);
}

/* Content Area */
.content {
    padding: 30px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Cards */
.card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--card-border);
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eaeaea;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card:hover:before {
    opacity: 1;
}

.service-card-header {
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card-header:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
}

.service-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.service-card:hover .service-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.service-description {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
    max-height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.service-charges {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eaeaea;
}

.charge-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 500;
}

.charge-amount {
    color: #4e73df;
    font-weight: 700;
    font-size: 16px;
}

.commission-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
    text-align: center;
    font-weight: 500;
}

.commission-amount {
    color: #1cc88a;
    font-weight: 700;
    font-size: 14px;
}

.service-card-footer {
    padding: 12px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    background-color: #f8f9fc;
}

/* Service Application Form Styles */
.field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #d1d3e2;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fc;
    border-radius: 50%;
    margin-right: 15px;
}

/* Service Info Bar Styles */
/* Mini Service Info */
.mini-service-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.service-badge, .fee-badge, .balance-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.service-badge {
    background-color: var(--primary-color);
    color: white;
}

.fee-badge {
    background-color: #f8f9fc;
    color: var(--primary-dark);
    border: 1px solid #e3e6f0;
}

.balance-badge {
    position: relative;
    padding-right: 25px;
}

.balance-badge.sufficient {
    background-color: #1cc88a;
    color: white;
}

.balance-badge.insufficient {
    background-color: #e74a3b;
    color: white;
}

.mini-add-btn {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: white;
    color: #e74a3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.mini-add-btn:hover {
    background-color: #f8f9fc;
    color: #e74a3b;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.align-items-center.justify-content-between .text-right {
        text-align: left !important;
        margin-top: 15px;
        width: 100%;
    }
    
    .d-flex.align-items-center {
        margin-bottom: 10px;
    }
    
    .mini-service-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .service-badge, .fee-badge, .balance-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #3a5ccc;
}

.btn-success {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-success:hover {
    background-color: #17a673;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white-color);
}

.btn-danger:hover {
    background-color: #d52a1a;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.table th {
    background-color: var(--light-color);
    font-weight: 700;
}

.table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

@media (min-width: 768px) {
    .form-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar.active {
        width: 250px;
    }
    
    .sidebar:not(.active) .sidebar-header h3,
    .sidebar:not(.active) .sidebar-menu span {
        display: none;
    }
    
    .sidebar:not(.active) .sidebar-menu a {
        text-align: center;
        padding: 15px;
    }
    
    .sidebar:not(.active) .sidebar-menu i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .main-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .main-content.active {
        width: calc(100% - 250px);
        margin-left: 250px;
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 0;
        position: fixed;
        left: -250px;
    }
    
    .sidebar.active {
        width: 250px;
        left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .main-content.active {
        width: 100%;
        margin-left: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .content {
        padding: 15px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5ccc;
}