@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e8e9ed;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(42, 48, 66, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    color: #4fc3f7;
    font-family:Rubik;
    margin-bottom: 30px;
    font-size: 2rem;
    /* text-shadow: 0 2px 10px rgba(79, 195, 247, 0.3); */
}

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

label {
    display: block;
    margin: 8px;
    font-family: Rubik;
    /* color: #b0bec5; */
    font-weight: 500;
}

.required {
    color: #ff6b6b;
}

input {
    width: 100%;
    font-family: Rubik;
    padding: 12px 16px;
    /* background: rgba(30, 36, 54, 0.8); */
    border: 2px solid black;
    border-radius: 12px;
    /* color: #e8e9ed; */
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

input::placeholder {
    color: #7a8289;
    opacity: 0.8;
}

/* Ensure placeholder visibility in dark themes */
.dark-mode input::placeholder,
[class*="theme-"] input::placeholder {
    color: #a0a8b0;
    opacity: 0.9;
}

/* Ensure placeholder visibility in light themes */
.light-theme input::placeholder {
    color: #6b7280;
    opacity: 0.9;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    font-family: unset;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.calculate-btn:hover {
    background: linear-gradient(45deg, #29b6f6, #4fc3f7);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 195, 247, 0.4);
}

.results {
    margin-top: 30px;
    padding: 25px;
    /* background: rgba(30, 36, 54, 0.6); */
    border-radius: 15px;
    border-left: 4px solid #4fc3f7;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgb(42 48 66 / 9%);
    border-radius: 8px;
}

.result-label {
    color: #b0bec5;
    font-weight: 500;
}

.result-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.safe {
    color: #4caf50;
}

.warning {
    color: #ff9800;
}

.danger {
    color: #f44336;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-safe {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.info-box {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #000000;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Premium System Styles */
.premium-overlay {
    width: 100%;
    justify-self: center;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2rem;
    color: #ffd700;
}

.logo h1 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

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

.premium-features {
	font-family:"Rubik", sans-serif !important;
    background: #f8f9fa;
    padding: 0.5rem;
	direction: rtl;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
}

.premium-features h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.premium-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.premium-features li {
    color: #555;
    margin: 0.8rem 0;
    font-size: 1rem;
}

.premium-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gold-button {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #000000;
    align-self: center;
    font-weight: 600;
    font-family: "Rubik", sans-serif !important;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    width: 250px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(247, 151, 30, 0.3);
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 151, 30, 0.4);
}

.gold-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(247, 151, 30, 0.3);
}

/* Loading Indicator */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #666;
    font-size: 1.1rem;
}

/* User Info Bar */
.user-info-bar {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-welcome {
    color: #ffd700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Message Box */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-box.info {
    background: #4facfe;
    color: white;
}

.message-box.success {
    background: #00b09b;
    color: white;
}

.message-box.error {
    background: #ff4b2b;
    color: white;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-overlay {
        margin: 1rem;
        padding: 1.5rem;
    }

    .gold-button {
        width: 200px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .premium-overlay {
        margin: 0.5rem;
        padding: 1rem;
    }

    .gold-button {
        width: 180px;
        font-size: 0.9rem;
        padding: 0.8rem 0rem;
    }
}

/* Back Button Styles */
.back-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    font-family: unset;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.4);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}
.placeholder{
    color: #7a8289;
}
