/* Iron Mind Invoice System - Custom Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-dark {
    background-color: var(--primary-color) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
}

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

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

/* Tables */
.table {
    background-color: #fff;
}

.table th {
    font-weight: 600;
    border-top: none;
}

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

/* Invoice Form Items */
.item-row {
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.item-row:hover {
    background-color: #e9ecef;
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-warning,
.card.bg-success {
    color: white;
}

.card.bg-primary .card-title,
.card.bg-warning .card-title,
.card.bg-success .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card.bg-primary h2,
.card.bg-warning h2,
.card.bg-success h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Login Page */
.card-title i {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card.bg-primary h2,
    .card.bg-warning h2,
    .card.bg-success h2 {
        font-size: 2rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Custom Utilities */
.text-muted {
    color: #6c757d !important;
}

.border-top {
    border-top: 2px solid #dee2e6 !important;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Loading States */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
