:root {
    --primary-color: #008b8b; /* Dark Cyan/Teal */
    --primary-hover: #007676;
    --secondary-color: #4facfe;
    --accent-color: #f39c12;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, #e0f2f1, transparent),
                      radial-gradient(circle at bottom left, #e3f2fd, transparent);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Progress Bar */
.goal-section {
    margin-bottom: 40px;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 10px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.progress-bar-container {
    width: 100%;
    height: 14px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.8s ease-in-out;
}

/* Address Section */
.formal-address {
    margin-bottom: 40px;
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
}

.address-item {
    margin-bottom: 15px;
}

.address-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.address-item span {
    color: var(--text-main);
    font-size: 1rem;
}

/* Petition Content */
.petition-content {
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: justify;
    margin-bottom: 40px;
}

.petition-content p {
    margin-bottom: 20px;
}

.highlight-box {
    background-color: #e6f7f7;
    border: 1px solid #b2dfdb;
    padding: 25px;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0, 139, 139, 0.05);
}

.support-text {
    font-weight: 500;
    color: var(--text-muted);
}

.divider {
    height: 1px;
    background: linear-gradient(to left, transparent, #ddd, transparent);
    margin: 40px 0;
}

/* Form Section */
.action-section {
    display: grid;
    gap: 30px;
}

.stats-info {
    text-align: center;
    margin-bottom: 10px;
}

.stats-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.count-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    margin-right: 8px;
}

.form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-main);
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-family: inherit;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 139, 139, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Recent Signers */
.recent-signers {
    margin-top: 20px;
}

.recent-signers h4 {
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-muted);
}

.signers-list {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.signer-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
    animation: fadeIn 0.5s ease-out forwards;
}

.signer-item:last-child {
    border-bottom: none;
}

.signer-name {
    font-weight: 600;
    color: var(--text-main);
}

.signer-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Social Sharing */
.social-sharing {
    text-align: center;
    margin-top: 40px;
}

.social-sharing h4 {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: scale(1.05);
}

.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.instagram { background-image: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .highlight-box {
        font-size: 1rem;
        padding: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Admin Area */
footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#admin-key-btn {
    background: transparent;
    border: none;
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    opacity: 0.5;
}

#admin-key-btn:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalSlide 0.4s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover { color: #333; }

#login-section {
    text-align: center;
    padding: 40px 0;
}

#login-section h2 { margin-bottom: 25px; color: var(--primary-color); }

#admin-password {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

#login-btn {
    padding: 10px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Dashboard Table */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background-color: #f8fafc;
    color: var(--text-muted);
    text-align: right;
    padding: 12px;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.delete-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.delete-btn:hover { background: #fecaca; }

.secondary-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.secondary-btn:hover { background: #e2e8f0; }
