:root{
    --primary: #2c3e50;
    --primary-light: #34495e;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #2ecc71;
    --warning: #f39c12;
    --info: #3498db;
    --danger: #e74c3c;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Base styles */
h1, h2, h3, h4, h5, h6,
p, span, label, a, li, td, th {
    font-size: 1rem;
    line-height: 1.5;
}

/* Headings larger by default */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

/* Medium devices */
@media (max-width: 991.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    p, span, label, a, li, td, th { font-size: 0.98rem; }
}

/* Small devices */
@media (max-width: 767.98px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4, h5, h6 { font-size: 1rem; }
    p, span, label, a, li, td, th { font-size: 0.92rem; }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    h1, h2, h3, h4, h5, h6 { font-size: 1rem; }
    p, span, label, a, li, td, th { font-size: 0.85rem; }
}

.hover-effect {
    transition: transform 0.2s;
}

.hover-effect:hover {
    transform: translateY(-2px);
}

.form-select, .form-control {
    border-color: #dee2e6;
}

.form-select:focus, .form-control:focus {
    border-color: #86b7fe;
}

.table td {
    vertical-align: middle;
}

.card {
    border: none;
}


/* sidebar */

.sidebar-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
}

/* error page */
.site-error {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.error-wrapper {
    position: relative;
    max-width: 650px;
    width: 100%;
    padding: 20px;
}

.error-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.error-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Background Elements */
.error-bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.error-bg-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #007bff, #6610f2);
    top: -150px;
    right: -150px;
}

.error-bg-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #fd7e14, #dc3545);
    bottom: -100px;
    left: -100px;
}

.error-bg-square {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #28a745, #20c997);
    top: 50%;
    right: -50px;
    transform: rotate(45deg);
    border-radius: 15px;
}

.error-code-wrapper {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code-background {
    position: absolute;
    font-size: 120px;
    font-weight: bold;
    opacity: 0.05;
    transform: scale(1.5);
}

.error-code-foreground {
    position: relative;
    font-weight: bold;
    background: linear-gradient(45deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-icon-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px;
}

.icon-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.error-icon {
    position: relative;
    z-index: 1;
}

.btn-action {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 140px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-action::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.btn-action:hover::after {
    width: 100%;
}

/* Enhanced Support Section */
.support-section {
    position: relative;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.support-email a {
    transition: all 0.3s ease;
}

.support-email a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    color: #0056b3;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .error-container {
        padding: 3rem !important;
    }

    .error-code-background {
        font-size: 100px;
    }

    .btn-action {
        width: 100%;
        margin: 0.5rem 0;
    }
}


/*receipt template*/
.receipt-container {
    margin: 0 auto;
    width: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    padding: 2em 3em;
    background: #fff !important;
    z-index: 10;
}

.bg_rc{
    position: relative;
    background-image: url("../image/rc_bg.png");
    background-size: cover;
    padding: 2em 0 !important;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
    flex-grow: 0;
    padding: .3em 0;
    font-weight: lighter !important;
    margin-bottom:1em ;
}

.data-row > *{
    font-size: .9em !important;
}

.data-row .strong{
    font-weight: bold !important;
}

.data-row .value{
    font-weight: normal !important;
}

.title-section{
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 2.3em;
    border-bottom: 2px solid var(--bg);
}

.data-container{
    width: 100%;
    padding: 0;
}

.head-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}


.head-section .logo image{
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.receipt-footer{
    border-top: 2px solid var(--bg);
    color: var(--textcolor);
    margin: 2em 0;
}

.print_controls {
    color: var(--textcolor);
    cursor: pointer;
    font-size: .9em !important;
}

@media print {
    .receipt-container {
        width: 100%;
        margin: 0;
        box-shadow: none;
        padding: 0 1.3em;
    }
    .print_controls{
        display: none !important;
    }
    .bg_rc{
        background-image: none !important;
    }
}


@media (max-width: 768px) {
    .receipt-container {
        width: 90%;
    }
    .off_small{
        display: none;
    }
}

@media (max-width: 375px) {
    .receipt-container {
        width: 100%;
    }
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--gray-700);
    line-height: 1.6;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
}

.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.prn-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.prn-header {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg) 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.prn-body {
    padding: 25px;
}

.prn-display {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prn-code {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.copy-btn {
    background-color: #a3a3a3;
    color: #434343;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--gray-200);
    transform: translateY(-2px);
}

.prn-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.expiry-alert {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border-left: 4px solid var(--warning);
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}

.expiry-alert i {
    font-size: 1.5rem;
    color: var(--warning);
    margin-right: 15px;
}

.section-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.section-header i {
    font-size: 1.4rem;
    margin-right: 15px;
    color: var(--secondary);
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.section-body {
    padding: 25px;
}

.payment-method {
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}


.method-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.method-icon i {
    font-size: 1.5rem;
    color: white;
}

.method-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.method-body {
    padding: 20px;
}

.mobile-money .method-icon {
    background-color: #8e44ad;
}

.bank-transfer .method-icon {
    background-color: #2980b9;
}

.agent-banking .method-icon {
    background-color: #27ae60;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.payment-option {
    background-color: white;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.option-header {
    padding: 15px;
    color: white;
    font-weight: 600;
}

.mtn .option-header {
    background-color: #ffcc00;
    color: var(--dark);
}

.airtel .option-header {
    background-color: #ff0000;
}

.option-body {
    padding: 15px;
}

.step {
    display: flex;
    margin-bottom: 12px;
}

.step-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.mtn .step-number {
    background-color: #ffcc00;
    color: var(--dark);
}

.airtel .step-number {
    background-color: #ff0000;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bank-table th {
    background-color: var(--gray-100);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--gray-300);
}

.bank-table td {
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
}

.bank-table tr:nth-child(even) {
    background-color: var(--gray-50);
}

.reference-note {
    background-color: var(--gray-100);
    border-left: 4px solid var(--info);
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.agent-box {
    background-color: var(--gray-100);
    border-radius: 10px;
    padding: 15px;
}

.agent-box h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.agent-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.agent-box li {
    margin-bottom: 8px;
}

.verification-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.verification-step {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.verification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.verification-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.verification-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.check-status-btn {
    background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.check-status-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.help-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.help-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.help-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

input[type="file"] {
    width: 100%;
    border: 1px solid #ccc;
    background: rgba(204, 204, 204, 0.34);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    appearance: none;
}
input[type="file"]::file-selector-button {
    display: none;
}
input[type="file"]::-webkit-file-upload-button {
    display: none;
}

.help-icon i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.help-title {
    color: var(--gray-600);
    margin-bottom: 5px;
}

.help-contact {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.success-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--success);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.side_bar{
    position: fixed;
    width: 13%;
    height: 100vh;
    background-color: var(--primary);
    color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.containers{
    display: flex;
    flex-shrink: 0;
    flex-grow: 0;
    margin:0 auto;
}
.main-contents{
    margin-left: 13%;
}


@media (max-width: 768px) {
    .prn-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .method-title {
        font-size: 1.1rem;
    }

    .prn-code {
        font-size: 1.4rem;
    }

    .side_bar{
        position: fixed !important;
        width: 0;
        z-index: 100 !important;
        height: 100vh !important;
        left: -100%;
        transition: all 0.3s ease-in-out;
        padding-top: 5em !important;
    }
    .side_bar .logo{
        margin-top: 2em !important;
    }
    .open_side{
        position: fixed !important;
        width: 70% !important;
        z-index: 100 !important;
        transform: translateX(0%) !important;
        left: 0 !important;
        transition: all 0.3s ease-in-out;
        padding-top: 4em !important;
    }

    .main-contents{
        margin-left: 0 !important;
    }

    .containers{
        flex-direction: column;
        width: 100%;
        height: 100vh;
        padding: .1em;
    }
}


@media (max-width: 375px) {
    input[type="file"] {
        width: 100%;
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 4px;
        appearance: none;
    }
}


