/* PhishGuard 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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Logo Image */
.logo-image {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    object-fit: cover;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
}

.logo h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* Main Content */
main {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

/* Scanner Card */
.scanner-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.scanner-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.scanner-card > p {
    color: #666;
    margin-bottom: 30px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#inputField {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 300px;
}

#inputField:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#scanButton {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
}

#scanButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#scanButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Results */
.results {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.status-icon {
    font-size: 2rem;
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Status Colors */
.status-safe {
    color: #28a745;
}

.status-suspicious {
    color: #ffc107;
}

.status-malicious {
    color: #dc3545;
}

/* Risk Meter */
.risk-meter {
    margin: 20px 0;
}

.risk-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.risk-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.risk-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 10px;
}

.risk-score {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

/* Risk Colors */
.risk-low {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.risk-medium {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.risk-high {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

/* Details */
.details {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.details h4 {
    color: #333;
    margin-bottom: 10px;
}

.details p {
    color: #666;
    margin-bottom: 5px;
}

/* Actions */
.actions {
    text-align: center;
    margin-top: 20px;
}

.secondary-button {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Info Section */
.info-section {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
}

/* History Section */
.history-section {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.history-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-input {
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.loading-text {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        border-radius: 15px;
        border-width: 2px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #inputField {
        min-width: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-input {
        max-width: 100%;
    }
}
