/* styles.css - Shared styles for all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #fff;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #16213e;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #0f3460;
}

h1 {
    color: #e94560;
    text-align: center;
}

.login-link {
    text-align: right;
    margin-bottom: 20px;
}

.login-link a {
    color: #4CAF50;
    text-decoration: none;
}

/* New plan grid with custom rows */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* Free trial card spans both columns */
.plan-card.free-trial {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #0f3460, #1a4a8b);
    border: 2px solid #ff9800;
}

.plan-card {
    background: #0f3460;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.plan-card.selected {
    border-color: #e94560;
    background: #1a4a8b;
}

.plan-card h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.4em;
}

.plan-card .price {
    font-size: 1.8em;
    color: #4CAF50;
    font-weight: bold;
    margin: 10px 0;
}

.plan-card .price.free {
    color: #ff9800;
    font-size: 2em;
}

.promo-text {
    font-size: 0.9em;
    color: #ffd966;
    margin-top: 10px;
    font-style: italic;
}

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

.form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

.instances-group {
    margin-bottom: 20px;
    display: none;
}

.instances-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
}

.instances-group input {
    width: 100px;
    padding: 12px;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    color: #fff;
    border-radius: 5px;
}

.total-price {
    margin: 20px 0;
    font-size: 1.2em;
    color: #e94560;
    display: none;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.btn:hover {
    background: #45a049;
}

.message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#plan-input {
    display: none;
}

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

.password-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Dashboard specific styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #0f3460;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.8em;
}

.logout-btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff6b8b;
}

.license-card {
    background: #16213e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #0f3460;
    border-left: 4px solid #4CAF50;
}

.license-card h3 {
    color: #e94560;
    margin-bottom: 15px;
}

.license-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.license-info-item {
    background: #1a1a2e;
    padding: 10px;
    border-radius: 5px;
}

.license-info-item label {
    color: #aaa;
    font-size: 0.9em;
    display: block;
}

.license-info-item .value {
    font-size: 1.1em;
    font-weight: bold;
    word-break: break-all;
}

.status-active {
    color: #4CAF50;
}

.status-expired {
    color: #f44336;
}

.status-suspended {
    color: #ff9800;
}

.renew-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.renew-btn:hover {
    background: #45a049;
}

.no-licenses {
    text-align: center;
    padding: 40px;
    background: #16213e;
    border-radius: 10px;
}