/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

/* Container Styles */
.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.left-column, .right-column {
    flex: 1;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.center-column {
    flex: 2;
    padding: 1rem 2rem;
    margin: 0 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Form Styles */
.auth-form, .coid-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* Message Styles */
.error {
    color: #e74c3c;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background-color: #fadbd8;
    border-radius: 4px;
}

.success {
    color: #27ae60;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background-color: #d5f4e6;
    border-radius: 4px;
}

.message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #ebf5fb;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: #2c3e50;
    color: white;
}

/* Additional styles for index.php */
.user-welcome {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links .btn {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.auth-links .btn:hover {
    background-color: #2980b9;
}

.user-dashboard {
    margin-top: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat h4 {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.quick-actions {
    margin-top: 20px;
}

.quick-actions .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.quick-actions .btn:hover {
    background-color: #219a52;
}

.features {
    margin-top: 30px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.feature h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.coid-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.coid-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Profile page specific styles */
.handle-form {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.handle-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.handle-label {
    width: 150px;
    font-weight: bold;
    margin-right: 15px;
}

.handle-input {
    flex: 1;
}

.handle-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.output-preview {
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.output-line {
    margin-bottom: 5px;
    font-family: monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .center-column {
        margin: 1rem 0;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .handle-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .handle-label {
        width: 100%;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .handle-input {
        width: 100%;
    }
}
/* COID Search Results */
.coid-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.coid-result h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.handle-results {
    margin-top: 10px;
}

.handle-line {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    font-size: 0.95rem;
}

.handle-line:last-child {
    border-bottom: none;
}

.handle-name {
    font-weight: bold;
    color: #2c3e50;
}

.handle-link {
    color: #3498db;
}

.handle-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.error {
    color: #e74c3c;
    padding: 10px;
    margin-top: 15px;
    background-color: #fadbd8;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}