/* Main Stylesheet for Tag Management System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Back button */
.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Card styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eef2f7;
    padding: 15px 20px;
    font-weight: 600;
}

.card-header h5 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: #6c757d;
    padding: 12px 8px;
}

.table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form styles */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Button styles */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Badge styles */
.badge {
    padding: 5px 8px;
    font-weight: 500;
    font-size: 11px;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eef2f7;
    padding: 15px 20px;
}

.modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 15px 20px;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* File upload preview */
.image-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #dee2e6;
    border-radius: 5px;
}

.image-preview img {
    max-width: 100px;
    max-height: 100px;
    margin-right: 10px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
}