/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* CSS Variables */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: 0.2s ease-in-out;
}

/* Header & Navigation */
header {
    background-color: var(--dark);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #34495e;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Sections */
.hero,
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: white;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Feature & About Cards */
.feature,
.about {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about {
    padding: 3rem;
}

/* Headings */
.feature h3,
.about h2,
.about h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.4rem;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

/* Text Content */
.feature p,
.about p {
    color: #666;
    line-height: 1.6;
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about ul {
    margin: 1rem 0 1rem 2rem;
    color: #666;
}

.about ul li {
    margin-bottom: 0.5rem;
}

/* Cards & Tables */
.card {
    border: none;
    border-radius: 10px;
}

.table-responsive {
    border-radius: 10px;
}

.modal-content {
    border-radius: 15px;
}

/* Status Badges */
.badge-status {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.status-open,
.priority-medium {
    background-color: var(--warning);
    color: #000;
}

.status-in_progress {
    background-color: var(--info);
    color: #fff;
}

.status-closed,
.priority-low {
    background-color: var(--success);
    color: #fff;
}

.priority-high {
    background-color: var(--danger);
    color: #fff;
}

.priority-urgent {
    background-color: #dc2626 !important;
    color: #fff !important;
    font-weight: bold;
    animation: pulse-urgent 2s infinite;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

@keyframes pulse-urgent {
    0% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.6); }
    100% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.3); }
}

/* Buttons & Forms */
.btn {
    border-radius: var(--radius);
    transition: background-color var(--transition), border-color var(--transition);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.input-group-text {
    border-right: none;
    background-color: var(--light);
}

.form-control {
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utility Classes */
.opacity-75 {
    opacity: 0.75;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Interactive Elements */
.table-row-clickable:hover {
    background-color: var(--light) !important;
    cursor: pointer;
}

.card-clickable {
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .card-body.p-5 {
        padding: 2rem !important;
    }
}
