/* CShield Panel - Custom Styling */

/* Global Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
}

/* Card Styling */
.main-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
    max-width: 700px;
}

/* Navigation */
.navbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

.navbar-toggler {
    border: 1px solid #5a5c69;
    border-radius: 0.35rem;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2890, 92, 105, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.25em;
    height: 1.25em;
}

.navbar-nav .nav-link {
    color: #5a5c69 !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 0.35rem;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: #eaecf4;
    color: #3a3b45 !important;
}

.navbar-nav .nav-item.active .nav-link {
    background-color: #4e73df;
    color: white !important;
}

/* Content Area */
.content-area {
    padding: 2rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.35rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    border: none;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(231, 74, 59, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    border: none;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(246, 194, 62, 0.4);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    border-radius: 0.35rem;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    color: white;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: #f8f9fc;
    font-weight: 600;
    color: #5a5c69;
}

.table td {
    vertical-align: middle;
}

.scrollable-table-wrapper {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
}

/* Accordion Styles */
.accordion {
    background-color: #f8f9fc;
    color: #5a5c69;
    cursor: pointer;
    padding: 1.25rem;
    width: 100%;
    border: 1px solid #e3e6f0;
    border-bottom: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.accordion:first-child {
    border-top-left-radius: 0.35rem;
    border-top-right-radius: 0.35rem;
}

.accordion:last-of-type {
    border-bottom: 1px solid #e3e6f0;
    border-bottom-left-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
}

.accordion:hover {
    background-color: #eaecf4;
}

.accordion.active {
    background-color: #4e73df;
    color: white;
}

.accordion:focus {
    outline: none;
}

.panel {
    padding: 1.5rem;
    display: none;
    background-color: white;
    border: 1px solid #e3e6f0;
    border-top: none;
    text-align: left;
}

.panel:last-child {
    border-bottom-left-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
}

/* Changelog Styling */
.changelog-version {
    background: #f8f9fc;
    padding: 1rem;
    border-radius: 0.35rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4e73df;
}

.changelog-version h5 {
    color: #4e73df;
    margin-bottom: 1rem;
    font-weight: 700;
}

.changelog-version ul {
    margin-bottom: 0;
}

.changelog-version li {
    margin-bottom: 0.5rem;
}

/* Login Page Specific */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    color: #5a5c69;
    margin-bottom: 2rem;
    font-weight: 700;
}

.captcha-container {
    text-align: center;
    margin: 1.5rem 0;
}

.captcha-container img {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
}

/* Labels */
label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
    display: block;
}

/* Info Text */
.info-text {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #5a5c69;
}

/* Links */
a {
    color: #4e73df;
    text-decoration: none;
}

a:hover {
    color: #224abe;
    text-decoration: underline;
}

/* Utilities */
.text-primary {
    color: #4e73df !important;
}

.bg-primary {
    background-color: #4e73df !important;
}

.border-primary {
    border-color: #4e73df !important;
}

/* Page-specific widths */
.home-card .content-area, .serverside-card .content-area {
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }

    .main-card, .home-card, .serverside-card {
        margin: 10px;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }
}