/* ============================================
   Custom Styles for AZ Service Website
   Modern & Professional Design
   ============================================ */

/* ===== Global Styles ===== */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --hover-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

* {
    font-family: 'Anek Bangla', 'Noto Sans Bengali', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
    background: transparent;
}

.body-wrapper {
    background: transparent;
    padding: 20px;
}

/* ===== Container Fluid ===== */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    background: #ffffff;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0 !important;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #17a673);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c62828);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f4b619);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #258391);
}

/* ===== Form Controls ===== */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-primary {
    background: linear-gradient(135deg, #cfe2ff, #b6d4fe);
    color: #084298;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd, #badbcc);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #842029;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffecb5);
    color: #664d03;
}

.alert-info {
    background: linear-gradient(135deg, #cff4fc, #b6effb);
    color: #055160;
}

/* ===== Notice Marquee ===== */
marquee.alert {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Tables ===== */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fc;
    transform: scale(1.01);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ===== Image Upload Area ===== */
.img-thumbnail {
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 5px;
    background: white;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== File Upload Button ===== */
input[type="file"] {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 12px;
    background: #f8f9fc;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    background: #e7f1ff;
    border-color: #224abe;
}

/* ===== Badges ===== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* ===== WhatsApp Link Styles ===== */
a[href*="whatsapp"],
a[href*="wa.me"] {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

a[href*="whatsapp"]:hover,
a[href*="wa.me"]:hover {
    color: #128c7e;
    text-decoration: underline;
}

/* ===== Service Price Cards (Homepage) ===== */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.list-group-item {
    border: none;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(78, 115, 223, 0.05);
    padding-left: 20px;
}

/* ===== Loading Spinner ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ===== Checkbox & Radio Styles ===== */
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    margin-left: 8px;
    font-weight: 500;
}

/* ===== Select Dropdown ===== */
select.form-control,
select.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* ===== Text Center Elements ===== */
.text-center h1,
.text-center h2,
.text-center h3,
.text-center h4,
.text-center h5 {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .container-fluid {
        padding: 0 10px;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #224abe;
}

/* ===== Print Button Styles ===== */
.PrintBtn {
    background: linear-gradient(135deg, #8a00ff, #6a00cc);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(138, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.PrintBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(138, 0, 255, 0.4);
}

/* ===== Success/Error Messages Animation ===== */
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Date Input Styling ===== */
input[type="date"],
input[type="text"][placeholder*="YYYY"],
input[type="text"][placeholder*="DD/MM/YYYY"] {
    position: relative;
}

/* ===== QR Code & Barcode Display ===== */
canvas,
img[alt*="Captcha"],
img[alt*="QR"] {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background: white;
}

/* ===== Action Links ===== */
a.btn-sm,
.action-link {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

a.btn-sm:hover,
.action-link:hover {
    transform: scale(1.05);
}

/* ===== Page Transitions ===== */
.page-wrapper,
.body-wrapper,
.container-fluid {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Focus Visible for Accessibility ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Disabled Button States ===== */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Custom File Upload Label ===== */
label[for*="Input"] {
    transition: all 0.3s ease;
}

label[for*="Input"]:hover {
    transform: scale(1.02);
}

/* ===== Empty State Messages ===== */
td[colspan] {
    padding: 40px !important;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ===== Icon Enhancements ===== */
i.fa,
i.ti,
.icon-circle i {
    transition: all 0.3s ease;
}

/* ===== Hover Effects for Icons ===== */
.sidebar-link:hover i,
a:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Status Indicators ===== */
.badge.bg-success::before {
    content: "✓ ";
}

.badge.bg-danger::before {
    content: "✗ ";
}

.badge.bg-warning::before {
    content: "⚠ ";
}

/* ===== Additional Enhancements ===== */
.row {
    margin-bottom: 0;
}

.mb-3, .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .btn,
    .alert,
    marquee,
    .no-print {
        display: none !important;
    }
}

