/* Playlio Padel Styles */

/* Navbar logo styles */
.navbar-brand img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.navbar-brand img:hover {
    opacity: 0.8; /* Slightly dimmed on hover */
}

/* Responsive logo adjustments */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 28px;
        max-width: 100px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Language switcher */
.language-switcher {
    margin-right: 1rem;
}

.language-switcher .form-select {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.language-switcher .form-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher .form-select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.language-switcher .form-select option {
    background-color: #343a40;
    color: white;
}

/* Button styles */
.btn-primary {
    background-color: #179659;
    border-color: #179659;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #146c43;
    border-color: #13653f;
    transform: translateY(-1px);
}

.btn-primary:focus {
    background-color: #146c43;
    border-color: #13653f;
    box-shadow: 0 0 0 0.25rem rgba(23, 150, 89, 0.25);
}

.btn-primary:active {
    background-color: #13653f;
    border-color: #125a38;
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

.btn-outline-primary {
    color: #179659;
    border-color: #179659;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: #179659;
    border-color: #179659;
    transform: translateY(-1px);
}

.btn-outline-primary:focus {
    background-color: #179659;
    border-color: #179659;
    box-shadow: 0 0 0 0.25rem rgba(23, 150, 89, 0.25);
}

.btn-outline-primary:active {
    background-color: #13653f;
    border-color: #125a38;
    transform: translateY(0);
}

.btn-outline-primary:disabled {
    color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Success button styles */
.btn-success {
    background-color: #179659;
    border-color: #179659;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #146c43;
    border-color: #13653f;
    transform: translateY(-1px);
}

.btn-success:focus {
    background-color: #146c43;
    border-color: #13653f;
    box-shadow: 0 0 0 0.25rem rgba(23, 150, 89, 0.25);
}

.btn-success:active {
    background-color: #13653f;
    border-color: #125a38;
    transform: translateY(0);
}

.btn-success:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Background and body styles */
.bg-primary {
    background-color: #179659 !important;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    max-width: 1200px;
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button group styles */
.btn-group {
    gap: 0.25rem;
}

/* Table styles */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table td:nth-child(2) {
    font-weight: 500;
}

.table td:first-child,
.table th:first-child {
    padding-left: 1.5rem;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Override Bootstrap primary and success colors */
.badge.bg-primary {
    background-color: #179659 !important;
}

.badge.bg-success {
    background-color: #179659 !important;
}

.text-primary {
    color: #179659 !important;
}

.text-success {
    color: #179659 !important;
}

/* Link colors */
a.text-primary:hover,
a.text-primary:focus {
    color: #146c43 !important;
}

a.text-success:hover,
a.text-success:focus {
    color: #146c43 !important;
}

/* Status badges */
.bg-upcoming {
    background-color: #17a2b8 !important;
}

.bg-in_progress {
    background-color: #179659 !important;
    color: #fff !important;
}

.bg-completed {
    background-color: #179659 !important;
}

.bg-cancelled {
    background-color: #dc3545 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .language-switcher .form-select {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Messages container */
.messages-container {
    margin-bottom: 1.5rem;
}

.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(23, 150, 89, 0.05);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Terms and Conditions Page Styles */
.terms-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #179659;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.alert-heading {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer link styles */
footer a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
} 