/* General Styles */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f0f2f5;
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
}

.navbar-brand {
    font-weight: 700;
    color: #13547a !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #13547a;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin: 50px 0;
    border-radius: 20px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3a506b 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #13547a, #80d0c7);
}

.footer h5 {
    color: #80d0c7;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #80d0c7;
    transition: width 0.3s ease;
}

.footer h5:hover::after {
    width: 100%;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(10px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 3px 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #80d0c7;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #80d0c7;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Facebook */
.social-links a:nth-child(1) {
    color: #1877f2;
    border: 2px solid #1877f2;
}

.social-links a:nth-child(1):hover {
    background-color: #1877f2;
    color: white;
}

/* Twitter */
.social-links a:nth-child(2) {
    color: #1da1f2;
    border: 2px solid #1da1f2;
}

.social-links a:nth-child(2):hover {
    background-color: #1da1f2;
    color: white;
}

/* Instagram */
.social-links a:nth-child(3) {
    color: #e4405f;
    border: 2px solid #e4405f;
}

.social-links a:nth-child(3):hover {
    background-color: #e4405f;
    color: white;
}

/* LinkedIn */
.social-links a:nth-child(4) {
    color: #0077b5;
    border: 2px solid #0077b5;
}

.social-links a:nth-child(4):hover {
    background-color: #0077b5;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #80d0c7;
    transition: width 0.5s ease;
}

.footer:hover .footer-bottom::before {
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateX(10px);
}

.contact-info i {
    margin-left: 10px;
    color: #80d0c7;
    font-size: 1.2rem;
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: white;
}

/* Profile Page Styles */
.stats-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s;
    height: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #13547a;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #13547a;
}

.message-card {
    background: white;
    border: none;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 20px;
}

.message-card:hover {
    transform: translateY(-2px);
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.message-date {
    color: #666;
    font-size: 0.9rem;
}

.reply-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.share-link {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.share-link input {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 12px;
    width: 100%;
}

.unread {
    border-right: 4px solid #13547a;
}

.notification-badge {
    position: relative;
    top: -10px;
    right: -5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
}

.delete-btn {
    color: #dc3545;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.delete-btn:hover {
    color: #bb2d3b;
    transform: scale(1.1);
}

.alert-delete-success {
    background-color: #d4edda;
    color: #155724;
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 15px;
}

/* Custom Checkbox Styles */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #13547a;
    border-color: #13547a;
}

.form-check-input:hover {
    border-color: #13547a;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #80d0c7;
    box-shadow: 0 0 0 0.2rem rgba(128, 208, 199, 0.25);
}

/* Button Styles */
.btn {
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #13547a;
    border-color: #13547a;
}

.btn-primary:hover {
    background: #0f4563;
    border-color: #0f4563;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    border-color: #dee2e6;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Message Cards */
.message-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-3px);
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    padding-right: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #13547a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Share Buttons */
.share-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-buttons .btn i {
    font-size: 1.2rem;
}

/* Facebook Button */
.share-buttons .btn-outline-primary:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

/* Twitter Button */
.share-buttons .btn-outline-info:hover {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

/* WhatsApp Button */
.share-buttons .btn-outline-success:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

/* Telegram Button */
.share-buttons .btn-outline-primary[onclick*="telegram"]:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    color: white;
}

.share-link {
    max-width: 100%;
    margin: 0 auto;
}

.share-link .input-group {
    max-width: 100%;
}

.share-link input {
    font-size: 0.9rem;
}

.share-buttons p {
    font-size: 0.9rem;
}

/* Success Message Page */
.success-animation {
    animation: scale-up 0.5s ease-out;
}

.success-animation i {
    animation: bounce 1s ease-in-out;
}

@keyframes scale-up {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.success-animation .bi-check-circle-fill {
    color: #28a745;
    filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.3));
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

/* Message Share Styles */
#messageCard {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#messageCard .message-content {
    padding: 20px;
}

#messageCard .message-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

#messageCard .message-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

#shareModal .modal-content {
    border-radius: 15px;
}

#shareModal .modal-body {
    padding: 20px;
}

#messagePreview {
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#messagePreview canvas {
    max-width: 100%;
    height: auto;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-inline-end: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Social Media Colors */
.dropdown-item i.bi-facebook { color: #1877f2; }
.dropdown-item i.bi-twitter { color: #1da1f2; }
.dropdown-item i.bi-whatsapp { color: #25d366; }
.dropdown-item i.bi-telegram { color: #0088cc; }

