/* 🔥 GLOBAL & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f4f6f9;
    font-family: 'Public Sans', sans-serif;
    color: #333;
    }

/* 🔹 SIDEBAR */
.cad-sidebar {
    background-color: #222d32;
    min-height: 100vh;
    padding: 0;
    transition: all 0.3s;
}

.cad-sidebar .logo-section {
    background-color: #e67e22;
    padding: 15px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.cad-sidebar .nav-link {
    color: #b8c7ce;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    font-weight: 400;
    font-size: 18px;
    text-decoration: none !important;
}

.cad-sidebar .nav-link:hover, .cad-sidebar .nav-link.active {
    color: #fff;
    background: #1e282c;
    border-left-color: #e67e22;
}

/* 🔹 INFO BOXES */
.info-box {
    display: flex;
    min-height: 90px;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    font-size: 45px;
    background: rgba(0,0,0,0.2);
    color: #fff;
}

.info-box-content {
    padding: 10px 15px;
    flex: 1;
}

.info-box-text {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.info-box-number {
    display: block;
    font-weight: bold;
    font-size: 24px;
}

.bg-teal { background-color: #17a2b8 !important; }
.bg-green { background-color: #28a745 !important; }
.bg-orange { background-color: #ffc107 !important; }
.bg-red { background-color: #dc3545 !important; }

/* 🔹 CARD & TABLE DESIGN */
.card {
    border-radius: 3px;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cad-card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px;
    font-weight: 600;
    color: #444;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

/* 🔹 PROFESSIONAL FORM STYLING (Updated) */

/* Form-kulla irukura ovvoru field wrap-kum gap */
form p, form div.form-group, .cad-form-field {
    margin-bottom: 20px !important;
    display: block;
}

/* Labels style */
form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input Fields (Text, Number, Select) */
input[type="text"], 
input[type="number"], 
input[type="tel"], 
input[type="email"], 
select, 
textarea {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #d2d6de;
    border-radius: 3px;
    background-color: #fff;
    color: #444;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Input Focus */
input:focus, select:focus, textarea:focus {
    border-color: #3c8dbc !important;
    outline: none;
    box-shadow: 0 0 5px rgba(60, 141, 188, 0.2);
}

/* Submit Button */
input[type="submit"], .btn-primary {
    background-color: #3c8dbc !important;
    border: 1px solid #367fa9 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 3px !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover, .btn-primary:hover {
    background-color: #367fa9 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Error/Success Messages */
.alert {
    padding: 12px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 20px;
}




/* ==========================================================================
   🔥 PROFESSIONAL DASHBOARD UI (GLOBAL & REUSABLE) Rip List UI
   ========================================================================== */

.cad-card {
    background: #fff;
    border-radius: 12px; /* Slightly more modern radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    overflow: hidden;
    margin-bottom: 25px;
}

.cad-card-header-main {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
}

.cad-card-header-main .btn-add-new {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important; /* Underline Removed */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cad-card-header-main .btn-add-new:hover {
    background: #ffffff;
    color: #0d6efd !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.cad-table {
    width: 100% !important;
    border-collapse: collapse;
}

.cad-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px !important; 
    border-bottom: 2px solid #f1f5f9 !important;
}

.cad-table tbody tr {
    background-color: transparent !important;
}


.cad-table tbody tr:nth-of-type(odd) td {
    background-color: #ffffff !important;
}


.cad-table tbody tr:nth-of-type(even) td {
    background-color:#F0F8FF !important;
}

.cad-table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

.cad-table td {
    padding: 12px 20px !important; 
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px;
    color: #334155;
}

.id-column {
    color: #64748b;
    font-weight: 600;
    width: 60px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.btn-edit:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: scale(1.05);
}

.btn-delete:hover {
    background: #fff1f2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.05);
}

.cad-pagination {
    background: #fff;
}

.cad-pagination ul.page-numbers {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.cad-pagination ul.page-numbers li span.current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.cad-pagination ul.page-numbers li a,
.cad-pagination ul.page-numbers li span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.cad-pagination ul.page-numbers li a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0d6efd;
}

.badge-status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.3px;
}

.status-published {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}


.status-pending {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}


.status-draft {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* --- Rip End of Professional UI --- */





/* Rip Add Form Design  */
.cad-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.cad-form-control, .cad-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cad-form-control:focus, .cad-form-select:focus {
    outline: none;
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-cad-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-cad-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

.select-multiple {
    min-height: 100px;
}

.input-group-text {
    background-color: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-right: none;
}
/* End Rip Add Form Design */