/* styles.css */

/* Reset some default styles */
* {
    box-sizing: border-box;
    margin:0;
    padding:0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    margin:0;
}

/* Header & Navigation */
.main-header {
    background: #002147; /* UCC Navy Blue */
    color: #fff;
    padding: 10px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display:flex;
    gap:20px;
}

.main-nav ul li a {
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    padding:5px 10px;
    transition:background 0.3s;
    border-radius:5px;
}

.main-nav ul li a:hover {
    background: #C8102E; /* Red on hover */
}

.logout-btn {
    background:#C8102E;
    color:#fff;
    border-radius:5px;
    padding:5px 10px;
}

/* Page Content Wrapper */
.page-content {
    width:80%;
    margin:20px auto;
    background:#fff;
    padding:20px;
    border-radius:5px;
    box-shadow:0 0 5px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #002147;
    margin-bottom:15px;
}

p {
    margin-bottom:10px;
    line-height:1.5;
}

/* Buttons */
.btn {
    background: #C8102E; 
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    border-radius:5px;
    font-weight:bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #A00E25;
}

/* Success & Error Messages */
.success {
    color: green;
    margin-bottom:10px;
    font-weight:bold;
}

.error {
    color: red;
    margin-bottom:10px;
    font-weight:bold;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin:0 auto;
}

.form-group {
    margin-bottom: 15px;
    display:flex;
    flex-direction:column;
}

.form-group-inline {
    display:flex;
    gap:20px;
    margin-bottom:15px;
}

.form-group-inline > div {
    flex:1;
    display:flex;
    flex-direction:column;
}

.form-group label,
.form-group-inline label {
    font-weight:bold;
    margin-bottom:5px;
    color:#002147;
}

.form-group input[type="text"], 
.form-group input[type="number"],
.form-group select, 
.form-group-inline input[type="text"], 
.form-group-inline input[type="number"],
.form-group-inline select,
.form-container input[type="password"] {
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:14px;
}

.form-group input[type="file"] {
    padding:5px 0;
}

.required {
    color:red;
}

/* Athlete Fields Background */
#athlete_fields .form-group,
#athlete_fields .form-group-inline {
    background:#f9f9f9;
    padding:10px;
    border-radius:5px;
    border:1px solid #ddd;
    margin-bottom:15px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top:20px;
    font-size:14px;
}

table, th, td {
    border:1px solid #ddd;
}

th, td {
    padding:10px;
    text-align:left;
    vertical-align:middle;
}

th {
    background:#002147;
    color:#fff;
    font-weight:bold;
}

/* Tags (Print View) */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
}

.tag {
    border: 1px solid #000;
    width: 300px;
    margin: 10px;
    padding: 10px;
    font-family: sans-serif;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag-header {
    background: #002147;
    color: #fff;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom:10px;
}

.tag-content {
    text-align: center;
    flex: 1;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:flex-start;
}

.tag-content img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 5px;
    border:1px solid #ccc;
    border-radius:5px;
}

.tag-info {
    margin-top:10px;
    text-align:left;
    width:100%;
    padding:0 10px;
    font-size:14px;
    line-height:1.4em;
}

.tag-footer {
    background: #FFD700;
    text-align: center;
    padding: 5px;
    margin-top: 10px;
    font-size:14px;
    font-weight:bold;
}

.tag h3 {
    margin:5px 0;
    font-size:16px;
}

.tag p {
    margin:2px 0;
}

.label {
    font-weight:bold;
    color:#002147;
}

/* Login Page Styles - Reverted */
.login-body {
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:#002147; /* Dark Blue background */
}

.login-container {
    background:#fff;
    padding:30px;
    border-radius:10px;
    width:300px;
    text-align:center;
}

.login-container h1 {
    margin-bottom:20px;
    color:#002147;
}

.login-container input[type=text], 
.login-container input[type=password] {
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:1px solid #ccc;
    border-radius:5px;
}

/* Print Styles */
@media print {
    .no-print { display: none; }
    .main-header, .page-content .btn, nav.main-nav, .logout-btn { display:none; }
    .page-content {
        width:100%;
        margin:0;
        box-shadow:none;
        border-radius:0;
        padding:0;
    }
}


.login-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-container {
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
}

.success {
    color: green;
    font-weight: bold;
    text-align: center;
}
