/* ========================================
   COMMON CSS - REFEREE MANAGEMENT SYSTEM
   ======================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #4facfe;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00f2fe;
    text-decoration: underline;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    min-height: calc(100vh - 80px);
    padding-bottom: 60px; /* Account for fixed footer */
}



/* ===== CARDS & CONTENT ===== */
.content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.card-body {
    padding: 2rem;
}

/* ===== FORMS ===== */
.form-control, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    background-repeat: no-repeat;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4facfe;
    color: #4facfe;
}

.btn-outline:hover {
    background: #4facfe;
    color: white;
    text-decoration: none;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

tr:hover {
    background: #f8f9fa;
}

/* ===== ALERTS & MESSAGES ===== */
.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: none;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===== PAGINATION ===== */
.paginator {
    text-align: center;
    margin: 2rem 0;
}

.pagination {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
}

.pagination li {
    display: inline-block;
}

.pagination a {
    display: block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #4facfe;
    color: white;
    border-color: #4facfe;
    text-decoration: none;
}

.pagination .current a {
    background: #4facfe;
    color: white;
    border-color: #4facfe;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.shadow { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

/* ===== GRID SYSTEM ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-6, .col-12 {
    padding: 0 15px;
    margin-bottom: 1rem;
}

.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== ADDITIONAL UTILITIES ===== */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6c757d;
}

.list-unstyled {
    list-style: none;
    padding: 0;
}

.gap-3 {
    gap: 1rem;
}

.text-primary { color: #4facfe !important; }
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.fa-3x { font-size: 3rem; }

/* Instruction steps styling */
.instructions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
}

.step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.5;
    color: #2c3e50;
}

/* ===== ADDITIONAL BUTTON STYLES ===== */
.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
    background: none;
}

/* ===== LIST STYLES ===== */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

.list-unstyled i {
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Mobile grid adjustments */
    .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #4facfe;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f2fe;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 20px;
    overflow: hidden;
    max-height: 100vh;
    position: relative;
}

.login-box {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    animation: slideUp 0.6s ease-out;
    margin: auto;
    align-self: center;
}

/* Left Column - System Information */
.info-column {
    flex: 1;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInLeft 0.8s ease-out;
}

.info-content {
    text-align: center;
    max-width: 400px;
}

.logo-section {
    margin-bottom: 2rem;
}

.ttfi-logo {
    max-width: 280px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ttfi-logo:hover {
    opacity: 1;
}

.info-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.info-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out;
}

.info-item:nth-child(1) { animation-delay: 0.2s; }
.info-item:nth-child(2) { animation-delay: 0.4s; }
.info-item:nth-child(3) { animation-delay: 0.6s; }
.info-item:nth-child(4) { animation-delay: 0.8s; }

.info-item i {
    font-size: 1.5rem;
    color: white;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.info-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Right Column - Login Form */
.login-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: slideInRight 0.8s ease-out;
}

.login-form-container {
    width: 100%;
    max-width: 350px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.login-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.login-form {
    padding: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.login-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.login-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.login-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.login-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.login-form .form-group:nth-child(5) { animation-delay: 0.5s; }

.login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Login form specific styles */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
    font-size: 1rem;
}

.login-form .form-control {
    padding-left: 45px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    width: 100%;
}

.login-form .form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
    user-select: none;
    font-weight: 500;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked ~ .checkmark {
    background-color: #4facfe;
    border-color: #4facfe;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    text-align: right;
}

.forgot-link {
    color: #4facfe;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.forgot-link:hover {
    color: #00f2fe;
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}

.btn-block::before {
    content: '\f090';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    color: white;
    text-decoration: none;
}

.btn-block:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.link-primary {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #00f2fe;
    text-decoration: underline;
}

/* Login page animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login page responsive design */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        max-width: 400px;
    }
    
    .info-column {
        padding: 2rem 1.5rem;
    }
    
    .ttfi-logo {
        max-width: 220px;
    }
    
    .info-header h2 {
        font-size: 1.6rem;
    }
    
    .info-header p {
        font-size: 1rem;
    }
    
    .info-items {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.8rem;
    }
    
    .login-column {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .login-box {
        border-radius: 15px;
        max-height: 90vh;
    }
    
    .info-column {
        padding: 1.5rem 1rem;
    }
    
    .ttfi-logo {
        max-width: 180px;
    }
    
    .info-header h2 {
        font-size: 1.4rem;
    }
    
    .info-header p {
        font-size: 0.9rem;
    }
    
    .login-column {
        padding: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* ===== DEFAULT FOOTER ===== */
.default-footer {
    background: white;
    border-top: 1px solid #eee;
    padding: 15px 30px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.default-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.default-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/*Report Form CSS*/
.stepper { display: flex;justify-content: space-between;margin-bottom: 25px;position: relative; }
.stepper::before { content: "";position: absolute;top: 50%;left: 0;width: 100%;height: 3px;background-color: #dee2e6;transform: translateY(-50%); }
.step { position: relative;z-index: 1;text-align: center;flex: 1; }
.step .circle { width: 35px;height: 35px;border-radius: 50%;background-color: #dee2e6;color: #6c757d;display: flex;align-items: center;justify-content: center;margin: 0 auto 8px;font-weight: 600;transition: all 0.3s; }
.step.active .circle { background-color: #0d6efd;color: #fff;}
.step.completed .circle { background-color: #198754;color: #fff;}
.step .label { font-size: 0.8rem;color: #6c757d;}
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.selectpicker { display: block !important;width: 100% !important;margin-top: 0.25rem; }
/*Report Form CSS*/

@media (max-width: 768px) {
    .default-footer {
        padding: 15px 20px;
    }
    
    .default-footer p {
        font-size: 0.85rem;
    }
} 