Files
team-tryouts/static/css/style.css
T

1015 lines
22 KiB
CSS

:root {
--primary: #4f46e5;
--primary-dark: #4338ca;
--primary-light: #eef2ff;
--success: #10b981;
--success-light: #ecfdf5;
--warning: #f59e0b;
--warning-light: #fffbeb;
--danger: #ef4444;
--danger-light: #fef2f2;
--info: #3b82f6;
--info-light: #eff6ff;
--secondary: #6b7280;
--secondary-light: #f3f4f6;
--dark: #1f2937;
--gray-50: #f9fafb;
--gray-100: #f3f4f6;
--gray-200: #e5e7eb;
--gray-300: #d1d5db;
--gray-400: #9ca3af;
--gray-500: #6b7280;
--gray-600: #4b5563;
--gray-700: #374151;
--gray-800: #1f2937;
--gray-900: #111827;
--sidebar-width: 260px;
--sidebar-collapsed: 0px;
--radius: 12px;
--radius-sm: 8px;
--shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
--shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
--transition: all 0.2s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--gray-50);
color: var(--gray-800);
line-height: 1.6;
min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
/* Sidebar */
.sidebar {
position: fixed;
left: 0;
top: 0;
width: var(--sidebar-width);
height: 100vh;
background: var(--dark);
color: white;
z-index: 1000;
transition: var(--transition);
overflow-y: auto;
}
.sidebar-header {
padding: 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 20px;
}
.logo i { color: var(--primary); font-size: 1.6rem; }
.user-badge {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: rgba(255,255,255,0.05);
border-radius: var(--radius-sm);
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.3rem; }
.user-info {
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
}
.user-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.75rem; padding: 2px 8px; border-radius: 20px; display: inline-block; width: fit-content; }
.nav-links {
list-style: none;
padding: 10px 0;
}
.nav-links li a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 20px;
color: var(--gray-400);
transition: var(--transition);
font-size: 0.9rem;
}
.nav-links li a:hover, .nav-links li a.active {
background: rgba(255,255,255,0.08);
color: white;
}
.nav-links li a.active {
border-left: 3px solid var(--primary);
padding-left: 17px;
}
.nav-links li a i { width: 20px; text-align: center; font-size: 1.1rem; }
.nav-divider {
height: 1px;
background: rgba(255,255,255,0.1);
margin: 10px 20px;
}
.logout-link { color: var(--danger) !important; }
.logout-link:hover { background: rgba(239,68,68,0.1) !important; }
/* Main Content */
.main-content {
margin-left: var(--sidebar-width);
transition: var(--transition);
min-height: 100vh;
}
.top-bar {
display: flex;
align-items: center;
gap: 16px;
padding: 16px 30px;
background: white;
border-bottom: 1px solid var(--gray-200);
position: sticky;
top: 0;
z-index: 100;
}
.sidebar-toggle {
background: none;
border: none;
font-size: 1.3rem;
color: var(--gray-500);
cursor: pointer;
padding: 4px 8px;
border-radius: var(--radius-sm);
display: none;
}
.sidebar-toggle:hover { background: var(--gray-100); }
.page-header h1 {
font-size: 1.3rem;
font-weight: 700;
color: var(--gray-900);
}
.breadcrumb { font-size: 0.8rem; color: var(--gray-500); }
.breadcrumb a { color: var(--primary); }
.content { padding: 24px 30px; }
/* Flash Messages */
.flash-messages {
padding: 0 30px;
margin-top: 8px;
}
.alert {
padding: 12px 16px;
border-radius: var(--radius-sm);
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-size: 0.9rem;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from { transform: translateY(-10px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid #bfdbfe; }
.alert-close {
background: none;
border: none;
font-size: 1.3rem;
cursor: pointer;
color: inherit;
opacity: 0.6;
padding: 0 4px;
}
.alert-close:hover { opacity: 1; }
/* Cards */
.card {
background: white;
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--gray-200);
}
.card-header h3 {
font-size: 1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
.card-body { padding: 20px; }
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: white;
border-radius: var(--radius);
padding: 20px;
display: flex;
align-items: center;
gap: 16px;
box-shadow: var(--shadow);
transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-sm { padding: 14px; }
.stat-card-sm .stat-info h3 { font-size: 0.9rem; }
.stat-card-sm .stat-info p { font-size: 0.75rem; }
.stat-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-sm);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
flex-shrink: 0;
}
.stat-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-info p { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.bg-primary { background: var(--primary-light); color: var(--primary); }
.bg-success { background: var(--success-light); color: var(--success); }
.bg-warning { background: var(--warning-light); color: var(--warning); }
.bg-info { background: var(--info-light); color: var(--info); }
.bg-danger { background: var(--danger-light); color: var(--danger); }
.bg-secondary { background: var(--secondary-light); color: var(--secondary); }
/* Dashboard Grid */
.dashboard-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@media (max-width: 900px) {
.dashboard-grid { grid-template-columns: 1fr; }
}
/* Tables */
.table-container { overflow-x: auto; }
.table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.table th {
text-align: left;
padding: 10px 12px;
font-weight: 600;
color: var(--gray-500);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 2px solid var(--gray-200);
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid var(--gray-100);
vertical-align: middle;
}
.table tbody tr:hover { background: var(--gray-50); }
.cell-title { font-weight: 600; }
/* Badges */
.badge {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.badge-lg { padding: 5px 14px; font-size: 0.85rem; }
.badge-upcoming { background: var(--info-light); color: var(--info); }
.badge-in_progress { background: var(--warning-light); color: var(--warning); }
.badge-completed { background: var(--success-light); color: var(--success); }
.badge-scheduled { background: var(--info-light); color: var(--info); }
.badge-cancelled { background: var(--danger-light); color: var(--danger); }
.badge-president { background: #eef2ff; color: #4338ca; }
.badge-manager { background: #ecfdf5; color: #059669; }
.badge-coach { background: #fffbeb; color: #d97706; }
.badge-player { background: #f3f4f6; color: #4b5563; }
.badge-scout { background: #fef2f2; color: #dc2626; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-registered { background: var(--info-light); color: var(--info); }
.badge-attended { background: var(--success-light); color: var(--success); }
.badge-no_show { background: var(--danger-light); color: var(--danger); }
.score {
font-weight: 700;
color: var(--primary);
font-size: 1.1rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: var(--radius-sm);
font-size: 0.9rem;
font-weight: 500;
border: none;
cursor: pointer;
transition: var(--transition);
text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-outline {
background: transparent;
border: 1px solid var(--gray-300);
color: var(--gray-700);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
/* Forms */
.form { max-width: 800px; }
.form-row {
display: flex;
gap: 16px;
margin-bottom: 0;
}
.form-group {
margin-bottom: 16px;
flex: 1;
}
.form-group label {
display: block;
font-size: 0.85rem;
font-weight: 600;
color: var(--gray-700);
margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--gray-300);
border-radius: var(--radius-sm);
font-size: 0.9rem;
transition: var(--transition);
background: white;
font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-select { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-select-sm { padding: 4px 8px; font-size: 0.8rem; }
.form-input { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-actions {
display: flex;
gap: 10px;
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid var(--gray-200);
}
.form-inline {
display: flex;
align-items: center;
gap: 8px;
}
.inline-form { display: inline; }
.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 calc(50% - 8px); }
.col-4 { flex: 0 0 calc(33.333% - 11px); }
.col-3 { flex: 0 0 calc(25% - 12px); }
/* Score Input */
.score-input {
display: flex;
align-items: center;
gap: 12px;
}
.score-input input[type="range"] {
flex: 1;
height: 6px;
-webkit-appearance: none;
appearance: none;
background: var(--gray-200);
border-radius: 3px;
outline: none;
}
.score-input input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
}
.range-value {
font-size: 1.2rem;
font-weight: 700;
color: var(--primary);
min-width: 30px;
text-align: center;
}
/* Auth */
.auth-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
}
.auth-wrapper .flash-messages {
width: 100%;
max-width: 420px;
padding: 0;
margin-bottom: 12px;
}
.auth-container {
background: white;
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
padding: 40px;
width: 100%;
max-width: 520px;
}
.auth-header {
text-align: center;
margin-bottom: 30px;
}
.auth-header i {
font-size: 3rem;
color: var(--primary);
margin-bottom: 12px;
}
.auth-header h2 {
font-size: 1.6rem;
font-weight: 700;
color: var(--gray-900);
}
.auth-header p {
color: var(--gray-500);
font-size: 0.9rem;
margin-top: 4px;
}
.auth-form .form-group {
margin-bottom: 18px;
}
.auth-form .form-group label {
font-size: 0.85rem;
font-weight: 600;
color: var(--gray-700);
margin-bottom: 6px;
display: flex;
align-items: center;
gap: 6px;
}
.auth-form .form-group label i {
color: var(--gray-400);
width: 16px;
}
.auth-form .form-group input {
width: 100%;
padding: 12px 14px;
border: 1px solid var(--gray-300);
border-radius: var(--radius-sm);
font-size: 0.95rem;
transition: var(--transition);
}
.auth-form .form-group input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
outline: none;
}
.auth-link {
text-align: center;
margin-top: 16px;
font-size: 0.9rem;
color: var(--gray-500);
}
/* Detail Grid */
.detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item.full-width { grid-column: 1 / -1; }
.detail-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.detail-value { font-size: 0.95rem; color: var(--gray-800); }
/* User Mini */
.user-mini {
display: flex;
align-items: center;
gap: 8px;
}
/* Profile */
.profile-header {
display: flex;
align-items: center;
gap: 20px;
}
.profile-info h2 { font-size: 1.3rem; margin-bottom: 4px; }
.profile-info p { font-size: 0.85rem; }
.profile-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.stat-item {
text-align: center;
padding: 16px;
background: var(--gray-50);
border-radius: var(--radius-sm);
}
.stat-item h4 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-item p { font-size: 0.8rem; color: var(--gray-500); }
/* Team */
.team-card {
background: var(--gray-50);
border-radius: var(--radius-sm);
padding: 16px;
}
.team-name {
font-size: 1rem;
font-weight: 600;
margin-bottom: 10px;
color: var(--gray-800);
}
.team-members {
list-style: none;
}
.team-members li {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 0;
font-size: 0.9rem;
}
.position-tag {
background: var(--primary-light);
color: var(--primary);
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
/* Eval Player Info */
.eval-player-info {
display: flex;
align-items: center;
gap: 16px;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 40px 20px;
}
.empty-state i {
font-size: 3rem;
color: var(--gray-300);
margin-bottom: 12px;
}
.empty-state h3 { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 16px; }
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
}
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 2001;
}
.modal-content {
background: white;
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
width: 100%;
max-width: 500px;
z-index: 2002;
position: relative;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 {
font-size: 1.1rem;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
color: var(--gray-400);
cursor: pointer;
padding: 0 4px;
}
.modal-close:hover { color: var(--gray-700); }
.modal-body {
padding: 20px;
}
/* E-Sports Styles */
.checkbox-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 8px;
margin-top: 4px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border: 1px solid var(--gray-200);
border-radius: var(--radius-sm);
cursor: pointer;
transition: var(--transition);
font-size: 0.85rem;
font-weight: 500;
color: var(--gray-700);
}
.checkbox-label:hover {
border-color: var(--primary);
background: var(--primary-light);
}
.checkbox-label input[type="checkbox"] {
accent-color: var(--primary);
width: 16px;
height: 16px;
cursor: pointer;
}
.section-divider {
border: none;
border-top: 1px solid var(--gray-200);
margin: 20px 0;
}
.section-title {
font-size: 1rem;
font-weight: 600;
color: var(--gray-800);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.section-title i {
color: var(--primary);
}
.badge-esport {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
display: inline-block;
margin: 2px 3px;
}
.trn-link {
color: var(--primary);
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 4px;
transition: var(--transition);
}
.trn-link:hover {
color: var(--primary-dark);
text-decoration: underline;
}
.form-text {
font-size: 0.8rem;
color: var(--gray-500);
margin-top: 4px;
display: block;
}
.small {
font-size: 0.85rem;
}
.header-actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}
/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mr-2 { margin-right: 8px; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
/* Calendar Styles */
#calendar {
min-height: 600px;
}
.fc {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.fc-toolbar {
margin-bottom: 16px;
}
.fc-toolbar-title {
font-size: 1.3rem;
font-weight: 600;
color: var(--gray-900);
}
.fc-button {
background: var(--primary) !important;
border: none !important;
border-radius: var(--radius-sm) !important;
padding: 6px 12px !important;
font-size: 0.85rem !important;
}
.fc-button:hover {
background: var(--primary-dark) !important;
}
.fc-button-primary:not(:disabled).fc-button-active,
.fc-button-primary:not(:disabled):active {
background: var(--primary-dark) !important;
}
.fc-daygrid-day {
transition: var(--transition);
}
.fc-daygrid-day:hover {
background: var(--gray-50);
}
.fc-event {
border-radius: var(--radius-sm);
padding: 2px 4px;
font-size: 0.8rem;
}
.fc-event-title {
font-weight: 600;
}
.btn-group {
display: flex;
gap: 4px;
}
/* Team Roster Display */
.team-roster-display {
font-size: 0.85rem;
color: var(--gray-600);
}
.team-roster-display small {
display: block;
margin-top: 2px;
}
.team-rosters {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.team-roster {
flex: 1;
min-width: 200px;
}
.team-roster h5 {
font-size: 0.9rem;
margin-bottom: 8px;
color: var(--gray-700);
}
.team-members-list {
list-style: none;
padding: 0;
margin: 0;
font-size: 0.85rem;
}
.team-members-list li {
padding: 4px 0;
color: var(--gray-600);
}
@media (max-width: 768px) {
.sidebar {
width: var(--sidebar-collapsed);
transform: translateX(-100%);
}
.sidebar.open {
width: var(--sidebar-width);
transform: translateX(0);
}
.main-content {
margin-left: 0;
}
.sidebar-toggle { display: block; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.form-row { flex-direction: column; }
.col-6, .col-4, .col-3 { flex: 0 0 100%; }
.profile-stats { grid-template-columns: 1fr; }
.detail-grid { grid-template-columns: 1fr; }
.content { padding: 16px; }
.top-bar { padding: 12px 16px; }
.flash-messages { padding: 0 16px; }
.team-rosters { flex-direction: column; }
}