/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
}

:root {
    /* Color variables */
    --primary-color: #6a1b9a;
    --secondary-color: #9c27b0;
    --dark-purple: #4a1482;
    --light-purple: #8e24aa;
    --accent-color: #26a69a;
    --light-color: #f3e5f5;
    --dark-color: #4a148c;
    --bg-gradient: linear-gradient(135deg, var(--dark-purple), var(--light-purple));
    
    /* Font sizes */
    --font-size-base: 1rem;        /* 16px */
    --font-size-sm: 0.875rem;      /* 14px */
    --font-size-xs: 0.75rem;       /* 12px */
    --font-size-lg: 1.125rem;      /* 18px */
    --font-size-xl: 1.25rem;       /* 20px */
    --font-size-2xl: 1.5rem;       /* 24px */
    --font-size-3xl: 1.875rem;     /* 30px */
    --font-size-4xl: 2.25rem;      /* 36px */
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p, li {
    font-size: var(--font-size-base);
}

.small, small {
    font-size: var(--font-size-sm);
}

/* Table styles */
.table-responsive {
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.15);
    border-radius: 8px;
    overflow-x: auto;
    font-size: var(--font-size-sm);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    min-width: 800px; /* Ensures table maintains minimum width for proper display */
}

@media (max-width: 768px) {
    .table-responsive {
        max-width: 100%;
        border-radius: 6px;
    }
}

.table th {
    background-color: var(--dark-color);
    color: white;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.75rem;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem;
    font-size: var(--font-size-sm);
}

/* Card styles */
.card {
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.15);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 13, 173, 0.2);
}

/* Remove hover effect from main dashboard card */
.dashboard > .card {
    transition: none;
}

.dashboard > .card:hover {
    transform: none;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.card-header h5 {
    font-size: var(--font-size-base);
    margin-bottom: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.dashboard .card-pending {
    border-color: #ffc107;
    border-top-color: #ffc107;
}

.dashboard .card-pending .card-header {
    background-color: #fff3cd;
}

.dashboard .card-pending .card-header h5 {
    background-color: #ffc107;
    color: #212529;
}

.dashboard .card-in-process {
    border-color: #0d6efd;
    border-top-color: #0d6efd;
}

.dashboard .card-in-process .card-header {
    background-color: #cfe2ff;
}

.dashboard .card-in-process .card-header h5 {
    background-color: #0d6efd;
}

.dashboard .card-completed {
    border-color: #198754;
    border-top-color: #198754;
}

.dashboard .card-completed .card-header {
    background-color: #d1e7dd;
}

.dashboard .card-completed .card-header h5 {
    background-color: #198754;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: var(--font-size-base);
    margin-bottom: 0.75rem;
}

/* Dashboard cards */
.dashboard .card {
    margin-bottom: 20px;
    overflow: hidden;
}

/* Important work styles */
.card.important-work {
    border-left: 4px solid #dc3545 !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

.card.important-work:hover {
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.table tr.important-work {
    background-color: rgba(220, 53, 69, 0.05);
}

.table tr.important-work td:first-child {
    border-left: 3px solid #dc3545;
}

/* Form styles */
.form-label {
    font-weight: 500;
    font-size: var(--font-size-base);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    font-size: var(--font-size-base);
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

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

textarea.form-control {
    min-height: 2.5rem;
}

.btn {
    font-size: var(--font-size-base);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-sm {
    font-size: var(--font-size-sm);
    padding: 0.375rem 0.75rem;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
}

/* Tool number style */
.tool-number {
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.card .tool-number {
    background-color: var(--primary-color);
    color: white;
}

.dashboard .card-pending .card-header .tool-number {
    background-color: #ffc107;
    color: #212529;
}

.dashboard .card-in-process .card-header .tool-number {
    background-color: #0d6efd;
    color: white;
}

.dashboard .card-completed .card-header .tool-number {
    background-color: #198754;
    color: white;
}

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

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: var(--font-size-xl);
}

.nav-link {
    font-weight: 500;
    font-size: var(--font-size-base);
    color: white !important;
    padding: 0.75rem 1rem;
}

.nav-link:hover {
    color: rgb(235, 117, 235) !important;
}

/* Footer styles */
footer {
    margin-top: auto;
    background-color: #4a0080 !important; /* Darker purple for footer */
    background-image: linear-gradient(to right, #4a0080, #6a0dad);
    padding: 1.5rem 0;
}

footer p {
    margin-bottom: 0.3rem;
    font-size: var(--font-size-sm);
}


/* Process note */
.process-note {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border-left: 3px solid #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.375rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 0.9375rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
    }
    
    .card-header {
        padding: 0.625rem 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    h1, .h1 {
        margin-bottom: 1.25rem;
    }
    
    h2, .h2 {
        margin-bottom: 1rem;
    }
    
    .form-control, .form-select {
        padding: 0.4375rem 0.625rem;
    }
    
    .btn {
        padding: 0.4375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-3xl: 1.375rem;
        --font-size-2xl: 1.25rem;
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: var(--font-size-sm);
    }
} 