/* apiv2/admin/style.css (FINAL, CLEANED VERSION) */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- General & Body Styling --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}
.card h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* --- Header Styling --- */
.header {
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 { margin: 0; font-size: 24px; }
.header a.btn { text-decoration: none; color: white; padding: 8px 15px; border-radius: 5px; }

/* --- Button & Message Styling --- */
.btn {
    display: inline-block;
    width: auto;
    padding: 12px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: white !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn:hover { background-color: #0056b3; transform: translateY(-2px); }
.error-text { color: #dc3545; }
.success-text { color: #28a745; }


/* --- Form Styling --- */
.form-container { max-width: 900px; margin: 30px auto; }
.form-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* --- Table Styling (Manage Matches, Users, etc.) --- */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; border: 1px solid #e0e0e0; text-align: left; vertical-align: middle; }
th { background-color: #f8f9fa; font-weight: 600; }
tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #f1f1f1; }

/* --- YEH HAI FOOLPROOF ACTION LINKS STYLING --- */
.action-links {
    display: flex;
    flex-wrap: nowrap; /* Buttons ko wrap hone se roko */
    gap: 8px;
}
.action-links a {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 5px;
    color: white !important;
    font-size: 13px;
    white-space: nowrap; /* Text ko bhi wrap hone se roko */
}
.action-links a.view { background-color: #007bff; }
.action-links a.edit { background-color: #ffc107; color: #212529 !important; }
.action-links a.duplicate { background-color: #17a2b8; }
.action-links a.delete { background-color: #dc3545; }


/* --- Status Badges --- */
.status-badge, .status-badge-large {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
}
.status-badge-large { font-size: 14px; float: right; }
.status-upcoming { background-color: #28a745; }
.status-live { background-color: #dc3545; }
.status-completed { background-color: #6c757d; }
.status-cancelled { background-color: #ffc107; color: #212529; }
.status-active { background-color: #28a745; }
.status-blocked { background-color: #dc3545; }
.status-inactive { background-color: #6c757d; }


/* --- Dashboard Specific Styling --- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.nav-card { text-align: center; transition: all 0.2s ease-in-out; }
.nav-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.nav-card a { text-decoration: none; color: #333; display: block; padding: 20px; }
.nav-card i { font-size: 28px; color: #007bff; margin-bottom: 10px; }
.nav-card h3 { margin: 0; font-size: 16px; font-weight: 500; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; }
.stat-card-icon { font-size: 32px; padding: 15px; border-radius: 50%; margin-right: 20px; color: #fff; }
.stat-card-info h4 { margin: 0 0 5px 0; font-size: 24px; }
.stat-card-info p { margin: 0; color: #6c757d; }