.registration-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.panel {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.panel-body {
    padding: 2rem;
}

.panel-body h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.panel-footer {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.radio-inline {
    display: inline-block;
    margin-right: 1rem;
    cursor: pointer;
}

.radio-inline input {
    margin-right: 0.3rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary {
    background-color: #007AFF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0066cc;
}

.btn-danger {
    background-color: #FF3B30;
    color: #fff;
    margin-top: 1rem;
}

.btn-danger:hover {
    background-color: #d9342b;
}

.form-group p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group p a {
    color: #007AFF;
    text-decoration: none;
}

.form-group p a:hover {
    text-decoration: underline;
}

/* Messages de succès et d'erreur */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
}

.success-icon, .error-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Styles pour le tableau de bord */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-container h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.dashboard-section {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.appointments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.appointment-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appointment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.appointment-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007AFF;
}

.appointment-time {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.appointment-description {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.appointment-actions {
    display: flex;
    justify-content: flex-end;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .registration-container {
        padding: 1rem;
    }
    
    .appointments-list {
        grid-template-columns: 1fr;
    }
    
    .dashboard-section {
        padding: 1.5rem;
    }
}

/* Message styles for main-content placement */
.message {
    margin: 0 auto 2rem auto;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    max-width: 800px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    border-left: 5px solid;
    animation: fadeInDown 0.5s ease forwards;
    position: relative;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(40, 167, 69, 0.9);
    border-left-color: #1d8036;
    color: white;
    backdrop-filter: blur(10px);
}

.error-message {
    background: rgba(220, 53, 69, 0.9);
    border-left-color: #a71d2a;
    color: white;
    backdrop-filter: blur(10px);
}

.success-icon, .error-icon {
    margin-right: 1.2rem;
    font-size: 1.3rem;
}

/* Optional: Close button for messages */
.message-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message {
        margin: 0 1rem 1.5rem 1rem;
        padding: 0.8rem 1.2rem;
    }
}