/**
 * Base CSS - Global styles for Yuva Jyotish
 * Extracted from base.html
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper - expands to fill available space */
main,
.main-content {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.8rem;
}

/* Container */
.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Result Section */
.result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Planet Table */
.planet-table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.planet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}

.planet-table th,
.planet-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.planet-table th {
    background: #667eea;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.planet-table tr:hover {
    background: #f5f5f5;
}

/* Ascendant Box */
.ascendant-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Messages */
.error {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Save Section */
.save-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
}

.save-btn {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.save-btn:hover {
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.save-status {
    font-size: 14px;
    color: #059669;
}