/* Application CSS */

/* Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --border-color: #dee2e6;
    --border-radius: 0.25rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* ===== Common Styles ===== */
.box-shadow {
    box-shadow: var(--box-shadow);
}

.hight-card {
    height: 30vh;
}

.card {
    border-radius: 15px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.brand-image-wrapper {
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.custon-size-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ===== Color System ===== */
.color1 {
    background-color: #ffe5e5;
    border-color: #ffcccc;
}

.color2 {
    background-color: #e6f2ff;
    border-color: #b3d9ff;
}

.color3 {
    background-color: #e6ffe6;
    border-color: #b3ffb3;
}

/* ===== Status Badges ===== */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-unread {
    background-color: #fef5ed;
    color: #ec9a3c;
}

.status-read {
    background-color: #edf8f5;
    color: #21b275;
}

.status-responded {
    background-color: #ecf5ff;
    color: #3a7eff;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .hight-card {
        height: 25vh;
    }
    
    .custon-size-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 0.5rem;
    }
}

/* ===== Custom Form Styles ===== */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* ===== Table Styles ===== */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* ===== Empty State ===== */
.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
}

/* ===== Pagination Styles ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination li.active span {
    background-color: #6366F1;
    border-color: #6366F1;
    color: white;
}

.pagination li a:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.pagination li.disabled span {
    color: #ced4da;
    pointer-events: none;
    background-color: #fff;
    border-color: #ced4da;
}

.pagination .page-link i {
    font-size: 14px;
}

.pagination .page-next span,
.pagination .page-next a,
.pagination .page-prev span,
.pagination .page-prev a {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ===== Contact List Styles ===== */
.contact-list {
    margin-bottom: 30px;
}

.contact-list .table th {
    font-weight: 600;
    vertical-align: middle;
}

.contact-list .table td {
    vertical-align: middle;
    padding: 12px 15px;
}

.contact-item {
    transition: background-color 0.2s;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 3px;
}

.contact-email {
    font-size: 13px;
    color: #6c757d;
}

.contact-date {
    font-size: 13px;
    color: #6c757d;
}

.contact-subject {
    font-weight: 500;
    color: #212529;
    margin-bottom: 5px;
}

.contact-message {
    font-size: 14px;
    color: #6c757d;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-status {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.contact-status.unread {
    background-color: #fef5ed;
    color: #ec9a3c;
}

.contact-status.read {
    background-color: #edf8f5;
    color: #21b275;
}

.contact-status.responded {
    background-color: #ecf5ff;
    color: #3a7eff;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-buttons .btn {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn i {
    font-size: 14px;
}

/* Pagination results counter */
.pagination-results {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
} 