/* Professional Pathloss Prediction App Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--gray-dark);
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-bottom: none;
}

.card-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.card-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--white);
    height: calc(2.5rem + 2px);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-text {
    color: var(--gray-medium);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-medium);
    border-color: var(--gray-medium);
}

.btn-outline-secondary:hover {
    background: var(--gray-medium);
    color: var(--white);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styles */
.table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--light-bg);
}

/* Result Display */
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success) !important;
}

/* Instructions Section */
.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: flex-start;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled li i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Focus States */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: none;
}

/* Hover Effects */
.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }

    .btn, .card:hover {
        box-shadow: none !important;
    }

    .no-print {
        display: none !important;
    }
}
