/* Dashboard-specific styles for Beach Football Analytics */

/* Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Form Styles */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* File Upload Styles */
.file-upload-zone {
    transition: all 0.2s ease;
}

.file-upload-zone.drag-over {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.file-item {
    animation: fileItemSlideIn 0.3s ease-out;
}

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

/* Notification Styles */
.notification {
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.slide-out {
    animation: notificationSlideOut 0.3s ease-in;
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Dashboard-specific button styles */
.dashboard-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    border: none;
    cursor: pointer;
}

.dashboard-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.dashboard-btn-primary {
    background-color: #2563eb;
    color: white;
}

.dashboard-btn-primary:hover {
    background-color: #1d4ed8;
}

.dashboard-btn-secondary {
    background-color: #4b5563;
    color: white;
}

.dashboard-btn-secondary:hover {
    background-color: #374151;
}

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

.dashboard-btn-danger:hover {
    background-color: #b91c1c;
}

/* Dashboard form elements */
.dashboard-input {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: white;
    transition: all 0.2s ease;
}

.dashboard-input::placeholder {
    color: #9ca3af;
}

.dashboard-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.dashboard-select {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: white;
    transition: all 0.2s ease;
}

.dashboard-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.dashboard-checkbox {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
}

.dashboard-checkbox:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dashboard card styles */
.dashboard-card {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.dashboard-card-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Team status badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-active {
    background-color: #2563eb;
    color: white;
}

.status-new {
    background-color: #16a34a;
    color: white;
}

.status-inactive {
    background-color: #4b5563;
    color: white;
}

/* Match item styles */
.match-item {
    background-color: rgba(55, 65, 81, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.match-item:hover {
    background-color: rgba(55, 65, 81, 0.7);
}

.match-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.match-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.match-item-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .modal-content,
    .file-item,
    .notification {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.dashboard-input:focus,
.dashboard-select:focus,
.dashboard-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* File upload zone enhancements */
.file-upload-zone {
    border: 2px dashed #4b5563;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload-zone:hover {
    border-color: #6b7280;
}

.file-upload-zone.drag-over {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* File list item styles */
.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.file-list-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-list-item-name {
    font-size: 0.875rem;
    color: white;
}

.file-list-item-size {
    font-size: 0.75rem;
    color: #9ca3af;
}

.file-list-item-remove {
    color: #f87171;
    transition: all 0.2s ease;
}

.file-list-item-remove:hover {
    color: #ef4444;
}

/* Form validation styles */
.form-error {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-field-error {
    border-color: #ef4444;
}

/* Modal overlay styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
}

.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.modal-dialog {
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #374151;
}

/* Section headers */
.section-header {
    font-size: 1.125rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

/* Grid layouts */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Spacing utilities */
.section-spacing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-spacing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Icon styles */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Text utilities */
.text-muted {
    color: #9ca3af;
}

.text-primary {
    color: #60a5fa;
}

.text-success {
    color: #4ade80;
}

.text-warning {
    color: #fbbf24;
}

.text-danger {
    color: #f87171;
} 